I don't know much about PyCall / PyPlot, so I can't answer that, sorry :-(


Am 02.04.2015 um 19:35 schrieb Diego Tapias <[email protected]>:

> Ok, thank you!
> Sorry for my grammar, I often type very fast and don't check it. 
> I see your point but it's confusing for me that the same syntax worked a few 
> days ago. Do you know if this is a new feature of matplotlib?
> 
> 2015-04-01 23:57 GMT-06:00 René Donner <[email protected]>:
> 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 <[email protected]>:
> 
> > 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.
> >
> 
> 

Reply via email to