Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2c2382

Browse filesBrowse files
committed
Use none as default argument
1 parent 514adb6 commit b2c2382
Copy full SHA for b2c2382

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/sphinxext/plot_directive.py

Copy file name to clipboardExpand all lines: lib/matplotlib/sphinxext/plot_directive.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def render_figures(code, code_path, output_dir, output_base, context,
539539
function_name, config, context_reset=False,
540540
close_figs=False,
541541
code_includes=None,
542-
outname=''):
542+
outname=None):
543543
"""
544544
Run a pyplot script and save the images in *output_dir*.
545545
@@ -635,7 +635,7 @@ def render_figures(code, code_path, output_dir, output_base, context,
635635
for fmt, dpi in formats:
636636
try:
637637
figman.canvas.figure.savefig(img.filename(fmt), dpi=dpi)
638-
if config.plot_preserve_dir and outname:
638+
if config.plot_preserve_dir and outname is not None:
639639
_log.info(
640640
"Preserving '{0}' into '{1}'".format(
641641
img.filename(fmt), config.plot_preserve_dir))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.