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) I found cmap1 is a PyObject, but cmap2 is another type called ColorMap. There is no any element named plb in PyPlot, so importing PyPlot should be independent from the previously imported module plb, therefore cmap1 should equal to cmap2. How could it happen?