KnowledgeBoat Logo
|

Informatics Practices

Which function is used to show legends ?

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

PyPlot

3 Likes

Answer

legend()

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

Answered By

3 Likes


Related Questions