I am using scatter 3d plot in matplotlib in python for plotting following data,
x y z b2
3.28912855713 4.64604863545 3.95526335139 1.0
3.31252670518 4.65385917898 3.96834118896 1.0
When the plot is 2d,
fig = plt.figure()
ax = fig.add_subplot(111)
line =ax.scatter(x,y,c=b2,s=500,marker='*',edgecolors='none')
cb = plt.colorbar(line)
It generates following image, which is perfectly right.
Now, I want to plot 3d points, for which the code is:
fig = plt.figure()
ax = fig.add_subplot(111,projection='3d')
line = ax.scatter(x,y,z,c=b2,s=1500,marker='*',edgecolors='none',depthshade=0)
cb = plt.colorbar(line)
And I get following plot, which is not right since the color should be green like previous case (b2 doesn't change).
Am I missing something ?