from the current version.

this causes trouble if the axis is very big, with values of, day 1e35.

diff -u /home/alex/mpl/usr/lib64/python3.3/site-packages/matplotlib/ticker.py~
/home/alex/mpl/usr/lib64/python3.3/site-packages/matplotlib/ticker.py
--- /home/alex/mpl/usr/lib64/python3.3/site-packages/matplotlib/ticker.py~
     2013-05-10 16:43:44.000000000 +1000
+++ /home/alex/mpl/usr/lib64/python3.3/site-packages/matplotlib/ticker.py
      2013-05-10 17:44:35.385288785 +1000
@@ -536,7 +536,7 @@
             _locs = list(self.locs) + [vmin, vmax]
         else:
             _locs = self.locs
-        locs = (np.asarray(_locs) - self.offset) / 10 ** self.orderOfMagnitude
+        locs = (np.asarray(_locs) - self.offset) / 10. ** self.orderOfMagnitude
         loc_range = np.ptp(locs)
         if len(self.locs) < 2:
             # We needed the end points only for the loc_range calculation.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to