'How can I create a colorful scatter plot
I want to create a colorful scatter plot and I have seen a usage of
plt.scatter(x, y, c = 'rby')
But when I use it ,it cant work.
ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not 'rby'
so how can I create a colorful scatter plot by matplotlib
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
