Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## [Matplotlib-users] Can't render the \dagger LaTex symbol

 [Matplotlib-users] Can't render the \dagger LaTex symbol From: Alejandro Weinstein - 2011-09-01 14:25:57 Hi: I am having problems with the \dagger LaTex symbol. The following code import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.title(r'$\dagger$') plt.show() produce a long Traceback that ends in File "/usr/lib/pymodules/python2.6/matplotlib/mathtext.py", line 1997, in raise_error raise ParseFatalException(msg + "\n" + s) ParseFatalException: Expected end of math '$'$ \dagger $(at char 0), (line:1, col:1) Other LaTex symbols works OK. For instance, if I use plt.title(r'$ \diamond $') instead, it works. I checked in mathtext.py, and \dagger is in the list of symbols. I am running Matplotlib '0.99.1.1'. Any idea about this problem? Alejandro.  ### Thread view  [Matplotlib-users] Can't render the \dagger LaTex symbol From: Alejandro Weinstein - 2011-09-01 14:25:57 Hi: I am having problems with the \dagger LaTex symbol. The following code import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.title(r'$ \dagger $') plt.show() produce a long Traceback that ends in File "/usr/lib/pymodules/python2.6/matplotlib/mathtext.py", line 1997, in raise_error raise ParseFatalException(msg + "\n" + s) ParseFatalException: Expected end of math '$' $\dagger$ (at char 0), (line:1, col:1) Other LaTex symbols works OK. For instance, if I use plt.title(r'$\diamond$') instead, it works. I checked in mathtext.py, and \dagger is in the list of symbols. I am running Matplotlib '0.99.1.1'. Any idea about this problem? Alejandro. 
 Re: [Matplotlib-users] Can't render the \dagger LaTex symbol From: Michael Droettboom - 2011-09-06 16:17:01 Indeed that is a bug. That is one of about a dozen missing symbols from the mapping that I just found be comparing the legacy Adobe Type1 name-to-Unicode mapping in matplotlib to the LaTeX-to-Unicode mapping that is currently used. I committed these to master here: https://github.com/matplotlib/matplotlib/commit/7f55623c84eaa7df7c8c534350ac03a72c32fb83 Mike On 09/01/2011 10:25 AM, Alejandro Weinstein wrote: > Hi: > > I am having problems with the \dagger LaTex symbol. The following code > > import matplotlib.pyplot as plt > > plt.plot([1,2,3]) > plt.title(r'$\dagger$') > plt.show() > > produce a long Traceback that ends in > > File "/usr/lib/pymodules/python2.6/matplotlib/mathtext.py", line 1997, > in raise_error > raise ParseFatalException(msg + "\n" + s) > ParseFatalException: Expected end of math '$' >$ \dagger $(at char 0), (line:1, col:1) > > Other LaTex symbols works OK. For instance, if I use plt.title(r'$ > \diamond $') instead, it works. I checked in mathtext.py, and \dagger > is in the list of symbols. > > I am running Matplotlib '0.99.1.1'. > > Any idea about this problem? > > Alejandro. > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA   Re: [Matplotlib-users] Can't render the \dagger LaTex symbol From: Michael Droettboom - 2012-04-23 21:38:10 On 04/21/2012 06:35 PM, Ariel Rokem wrote: > > > ParseFatalException: Expected end of math '$' > $rac{S}{S_0}$ (at char 0), (line:1, col:1) > > Should this have been resolved already? Does it relate to this issue? > > https://github.com/matplotlib/matplotlib/issues/659 > The improved error messages are not on the 1.1.x branch. They will be in the first of the 1.2.x series. In this particular case, however, you seem to be running into a problem by not using raw strings. The "\f" in "\frac" is getting converted by Python into a formfeed character. Use r"\frac{S}{S_0}" and you should have more luck. Mike