Revision: 5288
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5288&view=rev
Author:   jdh2358
Date:     2008-05-28 09:44:32 -0700 (Wed, 28 May 2008)

Log Message:
-----------
reverting due to PDF problem

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/ticker.py

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2008-05-28 16:41:21 UTC (rev 5287)
+++ trunk/matplotlib/CHANGELOG  2008-05-28 16:44:32 UTC (rev 5288)
@@ -1,4 +1,5 @@
-2008-05-28 Replaced '-' with u'\u2212' for minus sign as requested in
+2008-05-28 REVERTING due to PDF problem.  Replaced '-' with u'\u2212'
+           for minus sign as requested in
            
http://sourceforge.net/tracker/index.php?func=detail&aid=1962574&group_id=80706&atid=560720
 
 2008-05-28 zero width/height Rectangles no longer influence the

Modified: trunk/matplotlib/lib/matplotlib/ticker.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/ticker.py   2008-05-28 16:41:21 UTC (rev 
5287)
+++ trunk/matplotlib/lib/matplotlib/ticker.py   2008-05-28 16:44:32 UTC (rev 
5288)
@@ -408,7 +408,8 @@
     def pprint_val(self, x):
         xp = (x-self.offset)/10**self.orderOfMagnitude
         if np.absolute(xp) < 1e-8: xp = 0
-        return (self.format % xp).replace('-', u'\u2212')
+        #return (self.format % xp).replace('-', u'\u2212')  # crashes PDF
+        return self.format % xp
 
     def _formatSciNotation(self, s):
         # transform 1e+004 into 1e4, for example
@@ -428,7 +429,8 @@
                 else:
                     return r'%s%s'%(significand, exponent)
             else:
-                return (u'%se%s%s' %(significand, sign.replace('-', 
u'\u2212'), exponent)).rstrip('e')
+                sign = sign.replace('-', u'\u2212') # crashes PDF
+                return ('%se%s%s' %(significand, sign, exponent)).rstrip('e')
         except IndexError, msg:
             return s
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to