Daily Archives: September 8, 2011

matplotlib: latex strings are not interpreted

If the LaTeX strings are not intepreted in matplotlib (e.g., in the xlabel), check your configuration file ( see previous post for matplotlib configuration file). You can either do it for one session : rc(’text’, usetex=True) plot([1,2],[3,4]); title(’a^2’) rc(‘text’, usetex=True) … Continue reading

Posted in Python | Tagged , | Leave a comment

Matplotlib configuration

Note 4/Sept/2013: the new location is /home/user/.config/matplotlib If you have ipython, try this command ipython -pylabipython -pylab and if you have Qt, you can change the backend (library used for plotting) and use qt as follows: ipython -pylab qtipython -pylab … Continue reading

Posted in Python | Tagged , | Leave a comment