Re: [Matplotlib-users] Switching between different font settings

2009-02-27 Thread mochuk
Hi all, Johan Ekh-2 wrote: > > > What is the most convenient way to get Matplotlib to use the same fonts as > my main document and also to quickly switch between the > different document types? > > Take a look at: http://dtrx.de/od/tex/sfmath.html You have to load the package in the preambe

Re: [Matplotlib-users] Switching between different font settings

2009-02-27 Thread mochuk
Hi all, Johan Ekh-2 wrote: > > > What is the most convenient way to get Matplotlib to use the same fonts as > my main document and also to quickly switch between the > different document types? > > Take a look at: http://dtrx.de/od/tex/sfmath.html Best regards, Tobias -- View this message

Re: [Matplotlib-users] Switching between different font settings

2009-01-08 Thread Johan Ekh
OK, Thanks for your help. // Johan On Wed, Jan 7, 2009 at 7:36 PM, Jouni K. Seppänen wrote: > "Johan Ekh" writes: > > > I am trying to use helvetica and yes, text(r'$1+2+3={}$1+2+3') gives me > > helvetica for the non math mode case. > > But how do I get math mode to use the same font? > > You

Re: [Matplotlib-users] Switching between different font settings

2009-01-07 Thread Jouni K . Seppänen
"Johan Ekh" writes: > I am trying to use helvetica and yes, text(r'$1+2+3={}$1+2+3') gives me > helvetica for the non math mode case. > But how do I get math mode to use the same font? You can't. The problem is that while Helvetica contains all the usual letters and numbers, TeX math fonts must

Re: [Matplotlib-users] Switching between different font settings

2009-01-06 Thread Johan Ekh
Thank you for your answer! I am trying to use helvetica and yes, text(r'$1+2+3={}$1+2+3') gives me helvetica for the non math mode case. But how do I get math mode to use the same font? I've tried to set 'mathtext.rm': 'sans-serif' in my params dict and then run "rcParams.update(params)" but that d

Re: [Matplotlib-users] Switching between different font settings

2009-01-05 Thread Jouni K . Seppänen
"Johan Ekh" writes: > So far I've tried reading a file with settings specific to the current > document and using "rcParams.update(params)" to dynamically change the > settings. This seems to me to be a good way of switching between settings. > This way I can get the right font for legends and

[Matplotlib-users] Switching between different font settings

2009-01-04 Thread Johan Ekh
Hi all, I use Matplotlib and LaTeX to produce essentially two types of documents; technical reports for a large corporation and scientific papers. Thus, I use several LaTeX cls-files which uses different fonts. What is the most convenient way to get Matplotlib to use the same fonts as my main docu