matplotlib/matplotlib — Issue #553: operatorname missing in TeX support
Author: fperez
Created: 2011-10-25 01:28:56+00:00
State: open

The following code, which can be run outside ipython, fails with an incredibly long traceback:

```python
from pylab import *
plot([1,2], label=r'$\operatorname{cos}^{-1}\left(x\right)$')
legend()
show()
```

In IPython it further sends the session into a crazy tailspin, but I suspect we have a bug of our own as well in there. But if possible, it would be great to get the tracebacks arising from unrecognized tex constructs to be more manageable, as this one is probably several hundred frames deep. Given that pyparsing is at work, I'm not sure how much that can change though.