Pardon me, but I was hasty in sending the diff. The following diff will 
put a multiplication symbol in the tick label where large numbers are 
expected, but it also removes any possibility of getting a number 
written as 1e10, for example, so it definitely is not complete. 
Hopefully, this is a starting point for someone else to fix this properly.

Thanks,
Paul

Index: lib/matplotlib/ticker.py
===================================================================
--- lib/matplotlib/ticker.py    (revision 7225)
+++ lib/matplotlib/ticker.py    (working copy)
@@ -384,18 +384,10 @@
                  offsetStr = self.format_data(self.offset)
                  if self.offset > 0: offsetStr = '+' + offsetStr
              if self.orderOfMagnitude:
-                if self._usetex or self._useMathText:
-                    sciNotStr = self.format_data(10**self.orderOfMagnitude)
-                else:
-                    sciNotStr = '1e%d'% self.orderOfMagnitude
-            if self._useMathText:
-                if sciNotStr != '':
-                    sciNotStr = r'\times\mathdefault{%s}' % sciNotStr
+                sciNotStr = self.format_data(10**self.orderOfMagnitude)
+            if sciNotStr != '':
+                sciNotStr = r'\times\mathdefault{%s}' % sciNotStr
                  s = 
''.join(('$',sciNotStr,r'\mathdefault{',offsetStr,'}$'))
-            elif self._usetex:
-                if sciNotStr != '':
-                    sciNotStr = r'\times%s' % sciNotStr
-                s =  ''.join(('$',sciNotStr,offsetStr,'$'))
              else:
                  s =  ''.join((sciNotStr,offsetStr))

@@ -476,19 +468,15 @@
              significand = tup[0].rstrip('0').rstrip('.')
              sign = tup[1][0].replace('+', '')
              exponent = tup[1][1:].lstrip('0')
-            if self._useMathText or self._usetex:
-                if significand == '1':
-                    # reformat 1x10^y as 10^y
-                    significand = ''
-                if exponent:
-                    exponent = '10^{%s%s}'%(sign, exponent)
-                if significand and exponent:
-                    return r'%s{\times}%s'%(significand, exponent)
-                else:
-                    return r'%s%s'%(significand, exponent)
+            if significand == '1':
+                # reformat 1x10^y as 10^y
+                significand = ''
+            if exponent:
+                exponent = '10^{%s%s}'%(sign, exponent)
+            if significand and exponent:
+                return r'%s{\times}%s'%(significand, exponent)
              else:
-                s = ('%se%s%s' %(significand, sign, exponent)).rstrip('e')
-                return s
+                return r'%s%s'%(significand, exponent)
          except IndexError, msg:
              return s

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to