I am making plot in PyX.

To get (in LaTex language)


you use


(in PyX language).

I wanna get (in LaTex language)


How to do it in PyX language? Attempt of


gives error message.

1 Answer 1


After looking briefly at the documentation, and the examples section (as you didn't provide an example, which would have been nice):

from pyx import graph, text


g = graph.graphxy(width=8, x=graph.axis.linear(min=0, max=1))
g.plot(graph.data.function("y(x) = x**2", points=8))

xax = g.axes['x']
xax.axis.title = '$\mathbb{A}$'


which makes a PDF looking like

PDF generated by Python code

Note that only uppercase blackboard letters are defined by amsfonts, using lower case letters gives various symbols, as you can see if you try

\foreach \i in {a,b,...,z} {$\mathbb{\i}$}

\foreach \i in {A,B,...,Z} {$\mathbb{\i}$}

lower and uppercase mathbb


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.