I think the expression is alright: I looked at
> matplotlib/text.py - class Text. It seems that for this
> example the routine does not pass by the first use of
> self._rgxsuper:
It looks like you're right -- good catch. It should read
if ismath=='TeX': m = None
else: m = self._rgxsuper.match(self._text)
if m is not None:
bbox, info = self._get_layout_super(self._renderer, m)
> P.S.: BTW: splattering the prints around seems like
> poor-mans debugging Are there better solutions
> available?
It is certainly poor-man's debugging, but it is a time honored
tradition that has served me well. Of course, you could use the
python debugger, and it sometimes helps to embed an ipython shell in
the code
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
ipshell() # this call anywhere in your program will start IPython
If you place this inside a function, a shell will pop up with the
local namespace which you can then inspect.
JDH