English

Explain the purpose of the following function: plt.legend()

Advertisements
Advertisements

Question

Explain the purpose of the following function:

plt.legend()

One Line Answer
Advertisements

Solution

plt.legend() is used to invoke the default legend with plt.

shaalaa.com
Getting Started
  Is there an error in this question or solution?
Chapter 16: Data visualization using pyplot: line chart, pie chart and bar chart - Evaluation [Page 334]
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×