File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11New entries should be added at the top
22
3- 2005-02-02 Incorporated  Fernando's matshow
3+ 2005-02-02 Fixed a bug in dates mx2num - JDH
4+ 
5+ 2005-02-02 Incorporated Fernando's matshow - JDH
46
572005-02-01 Added Fernando's figure num patch, including experemental
68           support for pylab backend switching, LineCOllection.color
Original file line number Diff line number Diff line change @@ -576,15 +576,15 @@ def num2epoch(d):
576576    spd  =  24. * 3600. 
577577    return  (asarray (d )- 719163 )* spd 
578578
579- def  mx2num (m ):
579+ def  mx2num (mxdates ):
580580    """ 
581581    Convert mx datetime instance (or sequence of mx instances) to the 
582582    new date format, 
583583    """ 
584584    scalar  =  False 
585-     if  not  iterable (m ):
585+     if  not  iterable (mxdates ):
586586        scalar  =  True 
587-         m  =  [m ]
587+         mxdates  =  [mxdates ]
588588    ret  =  epoch2num ([m .ticks () for  m  in  mxdates ])
589589    if  scalar : return  ret [0 ]
590590    else : return  ret 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments