A

Admin • 833.24K Points
Coach

Q. Which option is valid for `plt.legend(loc='best')`?

  • (A) Always places it in upper-left
  • (B) Disables legend
  • (C) Automatically chooses the best location
  • (D) Applies no location logic
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

`loc='best'` makes Matplotlib decide the best location to avoid overlap.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.