Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-15 Thread David Kaplan
Hi, I guess the problem was mostly mine. To my eyes, the Bitstream Vera Serif doesn't look very "serif" to me (figure attached), but I am probably just not used to that font. Changing font.serif as suggested produced much more similar output. Thanks and sorry for the unnecessary confusion. How

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-15 Thread Michael Droettboom
I thought you said the normal text looked sans-serif. The debugging output seems to suggest otherwise. Maybe you can send me the generated plot as well. The default serif font, Bitstream Vera Serif, is not an identical match to the STIX fonts. The STIX fonts are designed to match Times. If

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-15 Thread David Kaplan
Hi, The output from using debug-annoying is attached. It all looks relatively normal to me, but perhaps you will see something I don't. I am thinking that the problem is the difference between Bitstream Serif and the STIX fonts - they are just different. Perhaps you can suggest a way to change

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-14 Thread Michael Droettboom
I'm surprised. That works for me. Can you (again) set verbose.level to "debug-annoying" and send the output? Cheers, Mike David M. Kaplan wrote: > Hi, > > Thanks for the suggestions. I have stopped using the usetex option. To > make math and normal text match, I tried the following: > > rcPa

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, Thanks for the suggestions. I have stopped using the usetex option. To make math and normal text match, I tried the following: rcParams['font.family'] = 'serif' rcParams['mathtext.fontset'] = 'stix' This didn't make them match - normal text looked to me like it was still sans-serif, while

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread Michael Droettboom
Sorry -- I forgot to mention that you need to put the verbose.level argument in your matplotlibrc file -- it can't be changed once matplotlib has been imported. Thanks, Mike David M. Kaplan wrote: > Hi, > > I gave this a shot, but it didn't print anything out. Attached is an > example of a plo

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, I gave this a shot, but it didn't print anything out. Attached is an example of a plot where the fonts don't match. In [4]: rcParams['verbose.level']='debug-annoying' In [5]: rcParams['mathtext.fontset'] = 'stix' In [6]: rcParams['font.family'] = 'serif' In [7]: plot(arange(10)) Out[7]:

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread Michael Droettboom
This works for me. Could you set the rcParam verbose.level to debug-annoying and send the output -- that will print some information about where it's looking for fonts and what it can and can not find. Cheers, Mike David M. Kaplan wrote: > Hi, > > Thanks for the suggestions. I have stopped us

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, Thanks for the suggestions. I have stopped using the usetex option. To make math and normal text match, I tried the following: rcParams['font.family'] = 'serif' rcParams['mathtext.fontset'] = 'stix' This didn't make them match - normal text looked to me like it was still sans-serif, while

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-10 Thread Darren Dale
Hi David, On Thursday 10 July 2008 11:15:37 am David M. Kaplan wrote: > 2) I have noticed that the font used for the xticklabels and the font > used for the xlabel and contour labels appears to be different (example > attached). One appears to be serif and the other sans-serif. This > seems to b

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-10 Thread Michael Droettboom
David M. Kaplan wrote: > Hi, > > I just upgraded to matplotlib 0.98.1 on a ubuntu hardy heron system. I > have noticed two problems since the upgrade: > > 1) For any plot, if I try to look at the properties of a text object I > get an error related to FontProperties having no attribute 'items'. S