mirror of
https://github.com/wassname/baukit.git
synced 2026-06-27 17:29:37 +08:00
Remove bbox_inches default.
This commit is contained in:
+1
-1
@@ -302,7 +302,7 @@ def render_image(obj, out):
|
|||||||
if hasattr(obj, 'save'): # Like a PIL.Image.Image
|
if hasattr(obj, 'save'): # Like a PIL.Image.Image
|
||||||
obj.save(buf, format='png')
|
obj.save(buf, format='png')
|
||||||
elif hasattr(obj, 'savefig'): # Like a matplotlib.figure.Figure
|
elif hasattr(obj, 'savefig'): # Like a matplotlib.figure.Figure
|
||||||
obj.savefig(buf, format='png', bbox_inches='tight')
|
obj.savefig(buf, format='png')
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False
|
||||||
src = 'data:image/png;base64,' + (
|
src = 'data:image/png;base64,' + (
|
||||||
|
|||||||
Reference in New Issue
Block a user