Hi all,

I'm only in my 4th day of using PyX, so please bear with me if I've  
missed something obvious.

Suppose I want to use a san-serif font for all text in a graph.  If  
my code looks something like:

text.set(mode="latex")
text.preamble(r"\usepackage{times}")
g = graph.graphxy(width=15.,\
        x=graph.axis.lin(min=0., max=2000.,\
          title=r'\Large\textsf{x-axis title}'),
          y=graph.axis.lin(max=125.,\
          title=r'\Large\textsf{y-axis title}'))

then the axis titles behave as I want: Helvetica is used due to  
"\usepackage{times}", but the tick labels along the axes are still in  
Computer-Modern.

Is there a straightforward way to force everything to Helvetica (or  
cmss if I had not added "\usepackage{times}" to the preamble)?

Thanks.

Bob Pyle

  

-------------------------------------------------------------------------
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/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to