We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d1917e + 9605bdb commit 860638eCopy full SHA for 860638e
atmos_cloud_sim_uj_utils/show_plot.py
@@ -18,5 +18,5 @@ def show_plot(filename=None, fig=pyplot, inline_format='svg'):
18
def save_and_make_link(fig, filename=None):
19
""" saves a figure as pdf and returns a Jupyter display()-able click-to-download widget """
20
temporary_file = TemporaryFile(suffix='.pdf', filename=filename)
21
- fig.savefig(temporary_file.absolute_path)
+ fig.savefig(temporary_file.absolute_path, bbox_inches='tight')
22
return temporary_file.make_link_widget()
0 commit comments