Hello PyX-Users,

is it possible to change the font of the x/y-values?
Although I can change the font for all other elements
(e.g. x/y-axis title) in one go using the text.preamble(...)
command, this does does not seem to work for the x/y-values
in the graph.

I've been playing around but couldn't find a solution.

Here's the code:

----------
from pyx import *

text.set(mode="latex")
text.preamble(r"\usepackage{palatino}")

g = graph.graphxy(width=8,
     x=graph.axis.linear(title="x-axis"),
     y=graph.axis.linear(title="y-axis"))
g.plot(graph.data.file("minimal.dat", x=0, y=1))

# g = graph.graphxy(width=8,
#      x=graph.axis.bar(title="x-axis"),
#      y=graph.axis.linear(title="y-axis"))
# g.plot(graph.data.file("minimal.dat", xname=0, y=1),
#       [graph.style.bar()])

g.writePDFfile("minimal")
g.writeEPSfile("minimal")
----------

As you can see from the code I've tried it out using a
bar style chart. This way the x-values are printed with
the palatino font.

To me it seems that the global font setting is overridden
as soon as graph.axis.linear(...) is used.

Maybe I'm missing a way to change the font for this case?

Any suggestions?

Arthur