Hi Alejandro,
Thank you very much for your help! It is a font priority problem. I added
cmr to the first of font.serif. Problem solved!
rcParams['font.serif'] = ['Computer Modern Roman'] + rcParams['font.serif']
Many thanks again!
A Spherical Chicken
On Sun, May 20, 2012 at 6:55 PM, Alejandro Weinstein <
[email protected]> wrote:
> On Sun, May 20, 2012 at 4:14 PM, Yang Zhang
> <[email protected]> wrote:
> > Recently I have tried to use latex to render all the texts in a plot for
> > consistent look with other texts in a paper. However, it seems that all
> the
> > texts in the plot are rendered in bold font. Please see the attached
> code.
>
> Can you try with the following setup?
>
> params = {'backend': 'Agg',
> 'ps.usedistiller' : 'xpdf',
> 'text.usetex' : True,
> 'font.family': 'serif',
> 'font.serif' : ['Times'],
> }
> mpl.rcParams.update(params)
>
> I made all the figures in this paper using these parameters:
> http://arxiv.org/pdf/1110.5063v1
>
> Alejandro
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users