Hello,

So... GR is a new plotting framework that is faster than Matplotlib and can 
be used as a backend for Matplotlib, including Julia's PyPlot package.

https://github.com/jheinen/gr
http://gr-framework.org/tutorials/matplotlib.html

I have installed GR,

> Pkg.add("GR")

and my reading of the second link is that all I have to do to get 
Matplotlib to use GR is change an environment variable:

export MPLBACKEND="module://gr.matplotlib.backend_gr"


So I did that, but that doesn't seem to have changed anything in PyPlot:

julia> using PyPlot

julia> plt[:get_backend]()
"TkAgg"

julia> plt[:switch_backend]()

ERROR ... valid backends are ['pdf', 'pgf', 'Qt4Agg', 'Gtk' ...] 


So it looks like I'm missing some steps. I don't know whether the problem 
is on the Julia side or the Python side. Does anyone know how to get PyPlot 
to work with GR?


On a related note, I tried using GR on its own. It went well until I tried 
to save.

julia> using GR
...
julia> savefig("plot.png")
GKS: Ghostscript support not compiled in


Since GKS was installed by `Pkg.add()`, I don't know how I'm supposed to 
recompile it with Ghostscript support. Does anyone know?


Thanks for the help.

Cheers,
Daniel.

Reply via email to