CBSE Class 12 Informatics Practices Question 60 of 147

Plotting with Pyplot — Question 25

Back to all questions
25
Question

Question 25

Which function is used to show legends ?

  1. display()
  2. show()
  3. legend()
  4. legends()
Answer

legend()

Reason — The legend() function in Matplotlib's Pyplot module is used to show legends in a plot.