pythontexpyx

Python Pyx plot: Using \mathbb in axes label of plot


I am making plot in PyX.

To get (in LaTex language)

\mathrm{a}

you use

\rm{a}

(in PyX language).

I wanna get (in LaTex language)

\mathbb{a}.

How to do it in PyX language? Attempt of

\bb{a}

gives error message.


Solution

  • You need to enable LaTeX by

    text.set(text.LatexRunner)
    

    By default PyX uses plain TeX.