On Monday, March 9, 2015 at 2:31:58 PM UTC-4, Jerry Xiong wrote:
>
> When I ran below codes:
>
> using PyCall
> @pyimport pylab as plb
> cmap1=plb.get_cmap("jet")
> pycall(cmap1,PyAny,0.5)
> Every thing goes fine, output result 
> (0.4901960784313725,1.0,0.4775458570524984,1.0)
>
> However, after I loaded PyPlot:
> require("PyPlot")
> cmap2=plb.get_cmap("jet")
> pycall(cmap2,PyAny,0.5)
> A error is occured: 
> ERROR: `pycall` has no method matching pycall(::ColorMap, ::Type{PyAny}, 
> ::Float64)
>

Yes, I should probably define a "pycall" method for ColorMap.   For now, 
you can do pycall(cmap2.o, PyAny, 0.5).

Reply via email to