Received from Lev Givon on Sun, May 13, 2007 at 04:46:54PM EDT: > Received from Darren Dale on Fri, May 11, 2007 at 05:29:01PM EDT: > > On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > > > Setting the font family with matplotlib.rc (or in my > > > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > > > font used to generate text when the usetex setting is enabled. This > > > seems to imply that the fonts I have listed in the font.serif, > > > font.sans-serif, and font.monospace settings (specifically, Times, > > > Helvetica, and Courier) are not deemed to be valid from LaTeX's point > > > of view. However, my LaTeX installation does appear to contain the > > > psnfss files. Is there something I am overlooking? > > > > > > I am using matplotlib 0.90.0 and teTeX 3.0 on Linux. > > > > changing the font family works for me. Maybe you should try deleting > > your .matplotlib/tex.cache and trying again. > > Apparently the weirdness I observed is a bit more subtle than I > described: changing the font with the usetex setting on does indeed > change the font used for the plot title and axis labels, but not for > the axis ticks. Changing the font with the usetex settings off causes > the selected font family to be used for the axis ticks. > > L.G.
Ah..I see what was going on; the numerical ticks are output in LaTeX math mode (e.g., $123$) and therefore rendered in CM if the specified fonts do not provide any math fonts. Is there a way to use LaTeX font packages such as euler, ccfonts, and cmbright? L.G. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users