CBSE Class 12 Informatics Practices Question 50 of 147

Plotting with Pyplot — Question 15

Back to all questions
15
Question

Question 15

To specify the style of line as dashed, which argument of plot() needs to be set ?

  1. line
  2. width
  3. style
  4. linestyle
Answer

linestyle

Reason — To specify the style of the line as dashed in Matplotlib's plot() function, we need to set the linestyle argument to 'dashed'.