[Matplotlib-users] small bugfix in font_manager.py

2010-11-24 Thread Daniel Hyams
MPL 1.0.0, OSX If USE_FONTCONFIG is turned on, the function FontProperties.get_size_in_points will sometimes fail, because it is wanting to use "fontManager", which is still 'None' if USE_FONTCONFIG is on. I'm not sure if it's the proper way to fix it, but here is a small patch that works (meanin

Re: [Matplotlib-users] Latex text rendering

2010-11-24 Thread Jouni K . Seppänen
David Pine writes: > "name 'xpdf' is not defined" > > params = {'backend': 'Agg', ... > 'ps.usedistiller' : xpdf, Put xpdf in quotes: 'xpdf' not xpdf. In the matplotlibrc file you don't need quotes there, but if you use Python to set parameters, you do. -- Jouni K. Seppänen http://w

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-24 Thread Alejandro Weinstein
On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever wrote: > As I have learnt from Michael Droettboom, you can simply use unicode > characters with a supported font set: > In my setup I prefer DejaVu-Sans. First install these fonts into your > system, then edit your matplotlibrc Thanks for the answer.

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-24 Thread Alejandro Weinstein
On Tue, Nov 23, 2010 at 8:15 PM, Nicolas Bigaouette wrote: > Why not just use latex? > plt.text(0.05, 0.95, r"This is the square marker: $\Box$ Subscript: $_\Box$ > superscript: $^\Box$", fontsize=20) It produces the following error: Exception in Tkinter callback Traceback (most recent call last