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?

  1. line
  2. lines
  3. linestyles
  4. 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')

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.