A

Admin • 802.91K Points
Coach

Q. How do you export a figure with padding?

  • (A) plt.export(pad=True)
  • (B) plt.savefig(..., bbox_inches='tight')
  • (C) plt.tight_padding()
  • (D) plt.figure(pad=True)
  • Correct Answer - Option(B)
  • Views: 2
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin
Use `bbox_inches='tight'` in `savefig()` to trim empty space.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.