Hi guys,

I'm trying to use pcolor from PyPlot but I'm getting the following error:

julia> using PyPlot
julia> pcolor(rand(10,10))

ERROR: PyError (:PyObject_Call) <type 'exceptions.AttributeError'>
AttributeError("'list' object has no attribute 'shape'",)
  File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 
3012, in pcolor
    ret = ax.pcolor(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py", line 
4875, in pcolor
    X, Y, C = self._pcolorargs('pcolor', *args, allmatch=False)
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py", line 
4668, in _pcolorargs
    numRows, numCols = C.shape

 in pyerr_check at /home/ronan.chagas/.julia/v0.3/PyCall/src/exception.jl:60
 in pycall at /home/ronan.chagas/.julia/v0.3/PyCall/src/PyCall.jl:92
 in pcolor at /home/ronan.chagas/.julia/v0.3/PyPlot/src/PyPlot.jl:370

Can anyone help me?

Thanks,
Ronan

Reply via email to