I think I've found a bug in matplotlib.  I use Sage, which is based on
Python and included matplotlib.

sage: import pylab
sage: pylab.text(0.2, 0.2, r"$\left(2a = b\right)$")  # note \left(
and \right) work
<matplotlib.text.Text object at 0x10daaf950>
sage: pylab.text(0.2, 0.5, r"$(2 \, a = b)$")       # note \, works
<matplotlib.text.Text object at 0x10dab9c90>
sage: pylab.savefig('a.png')
sage: pylab.text(0.2, 0.7, r"$\left(2 \, a = b\right)$")  # but
together they don't
<matplotlib.text.Text object at 0x10dad9b10>
sage: pylab.savefig('b.png')
ERROR: An unexpected error occurred while tokenizing input
...
AttributeError: 'Kern' object has no attribute 'height'

Is this repeatable for anyone else?  Would the full traceback be helpful?

-- 
J. H. Palmieri
jhpalmier...@gmail.com

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to