Remove bbox_inches default.

This commit is contained in:
David Bau
2022-04-20 14:47:21 -04:00
parent 20dc0f9811
commit 0db55db2f4
+1 -1
View File
@@ -302,7 +302,7 @@ def render_image(obj, out):
if hasattr(obj, 'save'): # Like a PIL.Image.Image
obj.save(buf, format='png')
elif hasattr(obj, 'savefig'): # Like a matplotlib.figure.Figure
obj.savefig(buf, format='png', bbox_inches='tight')
obj.savefig(buf, format='png')
else:
assert False
src = 'data:image/png;base64,' + (