|
From: Yi S. <mir...@gm...> - 2010-08-27 19:33:37
|
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 (Miranda) Shang
PhD candidate
Graduate Program in Molecular and Cellular Biology
Stony Brook University
|