ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 17 May 2015 22:47:57 +0200How to set matplotlib backend from SageTeX?https://ask.sagemath.org/question/26850/how-to-set-matplotlib-backend-from-sagetex/ The text labels in plots made from SageTeX support some LaTeX formatting, but this is done internally before writing to the output file, even in eps format. Multiple programs for vector graphics (e.g. Inkscape and Gnuplot) support a "eps+latex" format, where the text is left as-is to be typeset when included in a LaTex document. Is something like this possible with Matplotlib, Sage and finally SageTeX?
Since Matplotlib supports the [PGF backend](http://matplotlib.org/users/pgf.html), I was thinking about using it with SageTeX to include plots as TikZ figures. Unfortunately I have not figured out a way to do this, the technical problem is that I'm not able to access the matplotlib module from SageTeX to even specify the font size. The solutions suggested in [this question](http://ask.sagemath.org/question/10210/sage-latex-how-to-change-a-font-for-axes-label/) does not work for me, the font style and size remain constant (default).lahwaaczSun, 17 May 2015 22:47:57 +0200https://ask.sagemath.org/question/26850/