On Fri, Aug 27, 2010 at 2:33 PM, Yi Shang <mirandaisb...@gmail.com> wrote:

> Dear all,
> I was trying to change all figure fonts to Arial, or Times, but without any
> luck.
> below is the section I modify the property.
>
> ***************************************************************************************
> from numpy import *
> from matplotlib import pyplot as plt
> import pylab
> params = {'font.size' : 16,
>           'axes.labelsize' : 16,
>           'font.style' : 'normal',
>           'font.family' : 'sans-serif',
>         'font.sans-serif' : 'Arial'
> }
> pylab.rcParams.update(params)
>
> ****************************************************************************************
> The font.family line seems to be working ( I get different fonts when I
> specify 'sans-serif' or 'monospace'), but changing font.sans-serif has no
> effect at all. If the resulting figure is not changing, does it mean the
> font used is always the default in sans-serif family(Bitstream Vera Sans)? I
> wonder why matplotlib doesn't use more common fonts as default, like Arial
> or Times which are accepted by most journals..
>
>
> Thank you!
>

Yi,

This is just a guess, but I wonder if there might be a slight mistake on how
you are specifying the font.  If 'font.family' is set to 'monospace', then
the font name has to be assigned to 'font.monospace', not
'font.sans-serif'.  Does that make a difference?

Ben Root
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to