Home »
Python »
Matplotlib MCQs
Which argument keyword can be used to change the style of the plotted line?
13. Which argument keyword can be used to change the style of the plotted line?
- line
- lines
- linestyles
- linestyle
Answer: D) linestyle
Explanation:
When you want to change the style of the plotted line, you can use the keyword argument linestyle with the specified value. Consider the below code statement that can be used to change the style of the plotted line –
plt.plot(ypoints, linestyle = 'dotted')