Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 123807d

Browse files
committed
Merge pull request #5732 from matthew-brett/plot-directive-fixes
RF: fix annoying parens bug
2 parents 6df722f + 43cebd6 commit 123807d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def run(arguments, content, options, state_machine, state, lineno):
831831
options=opts,
832832
images=images,
833833
source_code=source_code,
834-
html_show_formats=config.plot_html_show_formats and not nofigs,
834+
html_show_formats=config.plot_html_show_formats and len(images),
835835
caption=caption)
836836

837837
total_lines.extend(result.split("\n"))

0 commit comments

Comments
 (0)