I would like to get something like this: $ E ^ {\ alpha} _ {\ beta} $, where there is a syntax index \ beta and superscript \ alpha for the character E. I type matplotlib (1.2.x with python 2.7.1 ) the following code:
ax.text(0.,0.,r'E$^{\alpha}_{\beta}$')
and I get an error:
Subscript/superscript sequence is too long. Use braces { } to remove ambiguity.
When I added extra curly braces to separate superscript and index like
ax.text(0.,0.,r'E${^{\alpha}}_{\beta}$')
matplotlib can handle it this time, but the result is not a SIMULTANEOUS superscript and index, it seems to be the symbol E $ ^ {\ alpha} $ with index \ beta, where \ alpha and \ beta are not vertically aligned.
source share