Hi Bob,
> 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.
The reason for this behavior is that the labels are set in mathmode. If
you do not own Helvetica math fonts (as is the case for most of us, I guess)
you have to instruct PyX not to typeset labels in mathmode by specifying
the axis texter as follows:
texter=graph.axis.texter.decimal(labelattrs=[])
In addition, you have to make sure that sans serif fonts are used
everywhere by saying:
text.preamble(r"""\renewcommand{\familydefault}{\sfdefault}
\usepackage{times}""")
As a side effect, it should not be necessary anymore to explicitly specify
that titles are to be typeset in sans serif as this is automatic.
A side remark: If at some point you want to create labels in Times, use
the mathptmx package instead of the obsolete times package.
Best regards,
Gert
--
Gert-Ludwig Ingold email: [EMAIL PROTECTED]
Institut für Physik Phone: +49-821-598-3234
Universität Augsburg Fax : +49-821-598-3222
D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold
Germany PGP : 86FF5A93, key available from homepage
pgpypHG7y5RPY.pgp
Description: PGP signature
------------------------------------------------------------------------- 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
