If I do
ax.yaxis.set_major_formatter(ScalarFormatter(useMathText=True))
only the "x1e6" multiplier is rendered in mathtext, which makes the
tick labels and the multiplier look different. Is this done on
purpose, or an inadvertent omission?
The following one-line change makes the tick labels use mathtext.
--- ticker.py.orig 2005-06-14 00:40:26.000000000 +0300
+++ ticker.py 2005-11-16 12:11:29.055601000 +0200
@@ -337,6 +337,7 @@
for loc in locs]
sigfigs.sort()
self.format = '%1.' + str(sigfigs[-1]) + 'f'
+ if self._useMathText: self.format = '$' + self.format + '$'
def pprint_val(self, x):
xp = (x-self.offset)/10**self.orderOfMagnitude
···
--
Jouni K Sepp�nen