mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 19:28:36 +08:00
DOC: Save plots with tight bounding boxes.
This commit is contained in:
@@ -575,7 +575,9 @@ def render_figures(code, code_path, output_dir, output_base, context,
|
||||
images.append(img)
|
||||
for format, dpi in formats:
|
||||
try:
|
||||
figman.canvas.figure.savefig(img.filename(format), dpi=dpi)
|
||||
figman.canvas.figure.savefig(img.filename(format),
|
||||
dpi=dpi,
|
||||
bbox_inches='tight')
|
||||
except exceptions.BaseException as err:
|
||||
raise PlotError(traceback.format_exc())
|
||||
img.formats.append(format)
|
||||
|
||||
Reference in New Issue
Block a user