|
From: Paul B. <peb...@gm...> - 2005-11-08 17:23:41
|
On 11/8/05, Cory Davis <cd...@st...> wrote: > > Thanks Robert, > Unfortunately I can't easily do this on my work machine. Our sys-admins > installed matplotlib release version 0.83.2. If your change is already > in 0.84 I can get them to upgrade, but I don't think they are so keen on > CVS. Can you suggest a quick hack in the meantime? Have you read this page: http://matplotlib.sourceforge.net/fonts.html ? If not, then a brief summary is: You should be able set the default font in your matplotlibrc file. If you want the labels to be different than the res= t of the plot, then you'll need to create a FontProperties object and pass it to the axes.set_xlabel() method before plotting, i.e. > myaxes =3D plot(...) > myfont =3D FontProperties(fontfamily=3D'sanserif') > myaxes.set_label('my text', fontdict=3Dmyfont) > plot(...) See also the font_properties_demo.py -- Paul Cheers, > Cory. > > > Robert Kern wrote: > > Cory Davis wrote: > > > >>Hi all, > >>I prefer san serif ticklabels on my matplotlib plots. Can anyone sugges= t > >>an easy of making this happen when using TeX/LateX to handle text? > > > > > > Update to the latest CVS, and I believe everything will Just Work. > > > > -- > --------------------------------------------------- > Cory Davis > Institute for Atmospheric and Environmental Science > Room 307, Crew Building, Kings Buildings, > University of Edinburgh. Edinburgh EH9 3JN > phone: +44 131 6505092 > www: http://www.geos.ed.ac.uk/contacts/homes/cdavis > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |