Font in figures

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

Hi David,

Have you set usetex=True in your rcParams?

ยทยทยท

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

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