Skip to content

Commit 860638e

Browse files
authored
Merge pull request #11 from slayoo/main
adding bbox_inches='tight' for savefig
2 parents 6d1917e + 9605bdb commit 860638e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atmos_cloud_sim_uj_utils/show_plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def show_plot(filename=None, fig=pyplot, inline_format='svg'):
1818
def save_and_make_link(fig, filename=None):
1919
""" saves a figure as pdf and returns a Jupyter display()-able click-to-download widget """
2020
temporary_file = TemporaryFile(suffix='.pdf', filename=filename)
21-
fig.savefig(temporary_file.absolute_path)
21+
fig.savefig(temporary_file.absolute_path, bbox_inches='tight')
2222
return temporary_file.make_link_widget()

0 commit comments

Comments
 (0)