A

Admin • 833.24K Points
Coach

Q. Which method is used to save a figure with transparent background?

  • (A) plt.save_transparent()
  • (B) plt.savefig('file.png', transparent=True)
  • (C) plt.writefile(transparent=True)
  • (D) plt.trans_save()
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

Use 'transparent=True' in savefig to save the figure without background.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.