Revision: 7513
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7513&view=rev
Author:   jdh2358
Date:     2009-08-20 23:16:11 +0000 (Thu, 20 Aug 2009)

Log Message:
-----------
make autodateformatter customizable

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/dates.py

Modified: trunk/matplotlib/lib/matplotlib/dates.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/dates.py    2009-08-20 23:15:07 UTC (rev 
7512)
+++ trunk/matplotlib/lib/matplotlib/dates.py    2009-08-20 23:16:11 UTC (rev 
7513)
@@ -432,12 +432,9 @@
     def __call__(self, x, pos=0):
         scale = float( self._locator._get_unit() )
 
-        keys = self.scaled.keys()
-        keys.sort()
-
         fmt = self.defaultfmt
 
-        for k in keys:
+        for k in sorted(self.scaled):
            if k>=scale:
               fmt = self.scaled[k]
               break


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to