I'm trying to generate plots in a Julia script running in batch mode,
without opening any GUI windows. As was recommended in Stack Overflow
<http://stackoverflow.com/questions/4706451/how-to-save-a-figure-remotely-with-pylab/4706614#4706614>
I
tried setting the matplotlib backend to Agg prior to calling PyPlot without
success:
julia> using PyCall
julia> @pyimport matplotlib as mp
julia> mp.use("Agg")
julia> using PyPlot
INFO: Loading help data...
julia> plot(1:10)
: cannot connect to X server localhost:11.0
[simonp@alvis tests]$
Is there a way to do this?
Thanks,
--Peter