A

Admin • 833.24K Points
Coach

Q. Which of the following is used to change the background color of a plot?

  • (A) plt.bgcolor()
  • (B) plt.style()
  • (C) fig.patch.set_facecolor()
  • (D) plt.set_theme()
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

You can set the background color using fig.patch.set_facecolor().

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.