The following works: using PyPlot a = plot(sin(linspace(-3,3))) savefig("test.png")
savefig only seems to work on the current figure. The error message you are seeing comes from the fact that that "myimage[:savefig]" tells julia to index "myimage" with ":savefig", and this syntax is just sugar for "getindex(myimage,:savefig)". Am 02.04.2015 um 03:20 schrieb Diego Tapias <dandrove...@gmail.com>: > Hello, > > I have got the same error in versions with the command savefig of matplotlib. > The same code worked a few days ago . This is what I got for this command > myimage[:savefig]("bla.pdf"): > > ERROR: LoadError: LoadError: KeyError: savefig not found > in getindex at /home/maquinadt/.julia/v0.4/PyCall/src/PyCall.jl:252 > in getindex at /home/maquinadt/.julia/v0.4/PyCall/src/PyCall.jl:257 > > > Any help would be appreciated. > > PS: It happens the same for both versions 0.3 and 0.4. >