Home »
Python »
Matplotlib MCQs
Which parameter(s) is used to define the color of the points in a scatter plot?
26. Which parameter(s) is used to define the color of the points in a scatter plot?
- color
- c
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The color and its shorter c both can be used to define the color of the points in a scatter plot.
plt.scatter(x, y, color = 'Blue')
Where x and y can be the NumPy arrays.