CBSE Class 12 Informatics Practices Question 59 of 147

Plotting with Pyplot — Question 24

Back to all questions
24
Question

Question 24

Which function would you use to set the limits for x-axis of the plot ?

  1. limits()
  2. xlimits()
  3. xlim()
  4. lim()
Answer

xlim()

Reason — The xlim() function is used to set the limits for the x-axis of a plot in Matplotlib.