English

Which command is correct to set the location "best" in legend() function?

Advertisements
Advertisements

Question

Which command is correct to set the location "best" in legend() function?

Options

  • legend(loc = "best")

  • legend(loc = 0)

  • legend()

  • All of these

MCQ
Advertisements

Solution

All of these

Explanation:

Legend(loc = "best"), legend(loc = 0), and legend() are all correct and will give the 'best' placement for the legend.

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

Englishहिंदीमराठी


      Forgot password?
Use app×