Colors lost in Matplotlib 3D scatter plot Colors lost in Matplotlib 3D scatter plot python python

Colors lost in Matplotlib 3D scatter plot


Rather than using ax.plot(x,y, 'o') try ax.plot(x,y,'.') or ax.plot(x,y,'*'. The 'o' is specifying the marker to use, and the 'o' marker is a large filled circle, which is why your plot looks ugly.