I am trying to show:

... like my x axis label. For this purpose, I use the pylab.figtext() function, i.e.
py.figtext(0.5, 0.05, "$k=2,\left \langle \left | -k \right |;k \right \rangle, k\in \mathbb{N}_{+}\cup\left \{ 0 \right \}$", rotation='horizontal', size='12')
Sorry, I get an error:
ValueError: $k=2,\left \langle \left | -k ight |;k ight angle, k\in \mathbb{N}_{+}\cup\left \{ 0 ight \}$ ^ Expected end of text (at char 0), (line:1, col:1)
Why? I thought I could use LaTeX freely. How do I format text in the figtext() method to achieve the above mathematical sentence? Thank you in advance.
source share