Home »
Python »
Matplotlib MCQs
What is the shorter keyword for the keyword argument 'linestyle' to change the style of the plotted line?
14. What is the shorter keyword for the keyword argument 'linestyle' to change the style of the plotted line?
- line
- lines
- style
- ls
Answer: D) ls
Explanation:
The shorter keyword for the keyword argument linestyle to change the style of the plotted line is: ls.
plt.plot(ypoints, ls = 'dotted')