Jörgen Stenarson wrote: > Hi, > > I get a complete crash dumping me in the console when there are unknown > latex commands in a mathtext expression, this when doing interactive > stuff in ipython -pylab.
That is on purpose. If you give mathtext something that is a syntax error, it throws an exception, showing where the syntax error occurred. The only time mathtext gives warnings (as opposed to errors) is when a the expression is syntactically correct but the symbols can not be found in the currently configured font. This is to make sure that plots are portable between matplotlib installations ... but the intention is not to fail silently on invalid expressions. > examples: > title("$|S_{11}|$") > title("$\vbar S_{11} \vbar$") > > I would also like to see an alias between | and \vert like there is in > regular latex. That was an oversight -- and is a good idea. This has been added in r4586. Thanks for finding this, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users