Apr-21-2019, 06:20 AM
As it could be seen from the official docs,
corresponding colors to each point.
c
parameter in the scatter
function could be a vector, consisting ofcorresponding colors to each point.
# changes in your code colored_inds = [10, 12, 15] # points #10, 12 and 15 will be blue. colors = ['r' if j not in colored_inds else 'b' for j in range(len(x))] ax.scatter(x, y, z, c=colors, marker='o')