Re: [Matplotlib-users] Font in figures needs to load a specific latex package \usepackage{tipa}

2013-07-25 Thread Paul Hobson
On Thu, Jul 25, 2013 at 12:16 PM, Jeffrey Spencer wrote:

> I want to use IPA vowel labels in my figures and to do that I need to load
> the package in latex \usepackage{tipa}. Is this possible as searching
> online besides using the new backend "pgf" I haven't seen how to manually
> select latex packages to load when using tex. Is this possible?
>

You can set the tex preample without using the "pgf" backend. Here's how
I'm setup:


impot matplotlib
matplotlib.rcParams['text.usetex']
Out[12]: True

matplotlib.rcParams['text.latex.preamble']
Out[13]:
['\\usepackage{siunitx}',
 '\\sisetup{detect-all}',
 '\\usepackage{helvet}',
 '\\usepackage{sansmath}',
 '\\sansmath']
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Font in figures needs to load a specific latex package \usepackage{tipa}

2013-07-25 Thread Jeffrey Spencer
I want to use IPA vowel labels in my figures and to do that I need to load
the package in latex \usepackage{tipa}. Is this possible as searching
online besides using the new backend "pgf" I haven't seen how to manually
select latex packages to load when using tex. Is this possible?

Also a side note is everytime when running ipython qtconsole and if I
select text.usetex = True in my .matplotlibrc or by running
rcParams.update() the kernal always seems to force a restart. It seems it
gets snagged in the external call to latex. It still works fine but a
message pops up constantly telling you the kernal needs to be restarted.
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Font in figures

2012-07-12 Thread Damon McDougall
On Thu, Jul 12, 2012 at 03:53:28PM +0200, David Kremer wrote:
> Hello, I want to ask some questions about fonts in figures.
> 
> I think that the best figures are achieved when the font used is the 
> same as in the surrounding text in all the figure. This is the case when 
> I use the latex notation (between $$), but unfortunately the police used 
> for the axis is not the same (this is sans-serif font).
> 
> On the other hand, you could have a sans-serif font in your document, 
> and thus you would like your equations to be also sans-serif as far it 
> is possible.
> 
> The reason I write to this mailing is because I want to know if it 
> exists general recipes to have the same font in all the figure with 
> matplotlib.
> 
> The first thing I thought about as a general recipie is to use an 
> 'epslatex' output, which is then compiled with latex to give an eps or a 
> pdf file, but I am not sure if it is possible to achieve such a result.
> 
> If you have some idea about that, let me know.
> 
> Thanks,
> 
> David
> 
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hi David,

Have you set usetex=True in your rcParams?

-- 
Damon McDougall
http://damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Font in figures

2012-07-12 Thread David Kremer
Hello, I want to ask some questions about fonts in figures.

I think that the best figures are achieved when the font used is the 
same as in the surrounding text in all the figure. This is the case when 
I use the latex notation (between $$), but unfortunately the police used 
for the axis is not the same (this is sans-serif font).

On the other hand, you could have a sans-serif font in your document, 
and thus you would like your equations to be also sans-serif as far it 
is possible.

The reason I write to this mailing is because I want to know if it 
exists general recipes to have the same font in all the figure with 
matplotlib.

The first thing I thought about as a general recipie is to use an 
'epslatex' output, which is then compiled with latex to give an eps or a 
pdf file, but I am not sure if it is possible to achieve such a result.

If you have some idea about that, let me know.

Thanks,

David

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users