[Matplotlib-users] LaTeX fonts

2007-08-07 Thread Johan Ekh
Hi all, I'm new to Python in general and Matplotlib in particular. I'm trying to create publication quality plots for inclusion in LaTeX papers and presentations and have some problems to get the fonts right. My matplotlibrc contains the following lines font.family: serif font.serif

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Darren Dale
On Tuesday 07 August 2007 07:37:04 am Johan Ekh wrote: Hi all, I'm new to Python in general and Matplotlib in particular. I'm trying to create publication quality plots for inclusion in LaTeX papers and presentations and have some problems to get the fonts right. My matplotlibrc contains

[Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
Hello, I'm a french user and I'm trying to put an 'é' into a pylab title. My locales and fully utf-8 and the code is the following under ipthon: import pylab a=é pylab.plot([1]) pylab.title(a) raises the error : UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works. But is always fails using matplotlib.rc('text',usetex=True)...side effect... Xavier Hello, I'm a french user and I'm trying to put an 'é' into a pylab title. My locales and fully utf-8 and the code is the following

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Ryan Krauss
This is admittedly a stupid question, but just to be sure, I don't see usetex: True in your post. Ryan On 8/7/07, Johan Ekh [EMAIL PROTECTED] wrote: Hi all, I'm new to Python in general and Matplotlib in particular. I'm trying to create publication quality plots for inclusion in LaTeX

Re: [Matplotlib-users] question about building from source on windows

2007-08-07 Thread william ratcliff
The build would be nice given the added features in interactivity in matplotlib now. Would it be difficult to make a Windows XP build as well? My current build seems to work--but others might also want one with the latest features. Thanks, William On 8/6/07, Charlie Moad [EMAIL PROTECTED]

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Jouni K . Seppänen
Xavier Gnata [EMAIL PROTECTED] writes: I'm a french user and I'm trying to put an 'é' into a pylab title. Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works. But is always fails using matplotlib.rc('text',usetex=True) As a workaround, does \'e (as in rf\'evrier)

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Darren Dale
On Tuesday 07 August 2007 11:37:45 am Johan Ekh wrote: OK, here is the LaTeX example from the cookbook, i.e. I executed the following: --- x --- import pylab from pylab import arange,pi,sin,cos,sqrt fig_width_pt = 246.0 # Get this from LaTeX using \showthe\columnwidth inches_per_pt =

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
Jouni K. Seppänen wrote: Xavier Gnata [EMAIL PROTECTED] writes: I'm a french user and I'm trying to put an 'é' into a pylab title. Ok it is a bug because matplotlib.rc('text',usetex=False) and then it works. But is always fails using matplotlib.rc('text',usetex=True) As

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Johan Ekh
Well, it looks OK but the fonts are still not the same as the ones used in LaTeX (at least not in my installation). Please look at the attached picture. It is another example but is shows the difference between the fonts. Best seen if you focus on the digit 6 in the graph (the upper digit) and in

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Michael Droettboom
Xavier Gnata wrote: Hello, I'm a french user and I'm trying to put an 'é' into a pylab title. My locales and fully utf-8 and the code is the following under ipthon: import pylab a=é pylab.plot([1]) pylab.title(a) raises the error : UnicodeDecodeError: 'ascii' codec can't decode byte

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Darren Dale
On Tuesday 07 August 2007 12:17:56 pm Johan Ekh wrote: Well, it looks OK but the fonts are still not the same as the ones used in LaTeX (at least not in my installation). Please look at the attached picture. It is another example but is shows the difference between the fonts. Best seen if you

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Xavier Gnata
Hello, I'm a french user and I'm trying to put an 'é' into a pylab title. My locales and fully utf-8 and the code is the following under ipthon: import pylab a=é pylab.plot([1]) pylab.title(a) raises the error : UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:

[Matplotlib-users] GTKbackend : nothing but gray.

2007-08-07 Thread Xavier Gnata
Hi, I'm a TkAgg user because it is the only backend which is usable on my box. This only pb if that this backend is not UTF8 compatible :( GtkAgg looks even better but when I tried plot([1,2]) I'm only get a gray window with nothing on it. No plot. No buttons. I have no time for now to try to