In matplotlib
, I can have a scatter plot with varying marker color given in clist
.
Note: the size of clist
is the same as ydata
, i.e., the color of each marker is specified separately.
plt.scatter(xdata, ydata, marker='o', c=clist)
Can I have something similar with plt.plot
?