On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: > I have trouble getting any symbols or any super/sub scripts to work > since I upgraded to 1.0 a few months ago. I always get a message > saying that some font isn't found. This occurs whenever I try to put > symbols, superscripts, or subscripts in a label, or when I use a log > scale (because then it MPL has to use superscripts). I have tried > changing my matplotlibrc file but haven't found any combination of > settings that help. > > To illustrate the problem, I have included three files, one python > file and the other the error as captured from the output as well as my > matplotlibrc file. The python file is trivial: > > # ------------------------------------------------- > import matplotlib.pyplot as pyplot > > pyplot.plot([1,2,3], label='$\alpha > \beta$') > > pyplot.legend() > pyplot.show() > # ------------------------------------------------- > > Can someone please help me figure out what is wrong? I'm on a Mac > running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. > Works on my system if you use a raw string (note ``r`` before string):
>>> pyplot.plot([1,2,3], label=r'$\alpha > \beta$') Does that fix your problem? -Tony ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users