On Monday, May 12, 2014 10:27:31 AM UTC-4, Cristóvão Duarte Sousa wrote: > > Hi Steven, > > According to http://matplotlib.org/users/pgf.html one has to do > matplotlib.use('pgf') >
Yes, there is currently no easy way to load PyPlot with a different backend like this. I could add such a feature pretty easily, but the alternate command that allows you to continue using Matplotlib interactively is probably nicer anyway. > from matplotlib.backends.backend_pgf import FigureCanvasPgf > matplotlib.backend_bases.register_backend('pdf', FigureCanvasPgf) > For this command, you certainly need to do "using PyCall" in order to access pyimport, but otherwise it looks like you are using exactly the same commands as in Python (albeit translated to Julia/PyCall syntax). Glad to hear that this works!