The axis offset text does not work if usetex=False (eg it has a
"\times" string in it). Darren, could you take a look at this when
you get a minute and see if it can be made to work with usetex =
True>False.
When I try and run the newscalarformatter_demo.py example
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
line 293, in expose_event
self._render_figure(self._pixmap, w, h)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
line 72, in _render_figure
FigureCanvasAgg.draw(self)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 398, in draw
self.figure.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
529, in draw
for a in self.axes: a.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
1677, in draw
self.xaxis.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/axis.py", line
600, in draw
self.offsetText.draw(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/text.py", line
339, in draw
bbox, info = self._get_layout(renderer)
File "/usr/lib/python2.4/site-packages/matplotlib/text.py", line
186, in _get_layout
w,h = renderer.get_text_width_height(
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 253, in get_text_width_height
width, height, fonts = math_parse_s_ft2font(
File "/usr/lib/python2.4/site-packages/matplotlib/mathtext.py", line
1340, in math_parse_s_ft2font
handler.expr.set_size_info(fontsize, dpi)
File "/usr/lib/python2.4/site-packages/matplotlib/mathtext.py", line
976, in set_size_info
self.elements[0].set_size_info(self._scale*fontsize, dpi)
File "/usr/lib/python2.4/site-packages/matplotlib/mathtext.py", line
888, in set_size_info
self.metrics = Element.fonts.get_metrics(
File "/usr/lib/python2.4/site-packages/matplotlib/mathtext.py", line
402, in get_metrics
cmfont, metrics, glyph, offset = \
File "/usr/lib/python2.4/site-packages/matplotlib/mathtext.py", line
422, in _get_info
raise ValueError('unrecognized symbol "%s"' % sym)
ValueError: unrecognized symbol "\times10"
Thanks!
JDH