English

The code add legends "Rohit", "Suman" to line graph plt is:

Advertisements
Advertisements

Question

The code add legends "Rohit", "Suman" to line graph plt is:

Options

  • plt.legends=["Rohit", "Suman"]

  • plt.legend=["Rohit","Suman"]

  • plt.legend(["Rohit","Suman"])

  • plt.legend["Rohit", "Suman"]

MCQ
Advertisements

Solution

plt.legend(["Rohit","Suman"])

shaalaa.com
Customisation of Plots
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×