I have 3 1-D arrays, for the X values, Y values and Z values. I want to make a 2-d plot with X vs Y and have Z in color.
However every time I try I run I get
AttributeError: 'list' object has no attribute 'shape'
currently I have:
X=np.array(X)
Y=np.array(Y)
Z=np.array(Z)
fig = pyplot.figure()
ax = fig.add_subplot(111)
p = ax.scatter(X,Y,Z)
I have also tried
fig, ax = pyplot.figure()
p = ax.pcolor(X,Y,Z,cmap = cm.RdBu)
cb = fig.colorbar(p,ax=ax)
both give me the same error.
