8000 Merge pull request #5732 from matthew-brett/plot-directive-fixes · matplotlib/matplotlib@90fb362 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90fb362

Browse files
committed
Merge pull request #5732 from matthew-brett/plot-directive-fixes
RF: fix annoying parens bug
1 parent 0823022 commit 90fb362

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
@@ -825,7 +825,7 @@ def run(arguments, content, options, state_machine, state, lineno):
825825
options=opts,
826826
images=images,
827827
source_code=source_code,
828-
html_show_formats=config.plot_html_show_formats and not nofigs,
828+
html_show_formats=config.plot_html_show_formats and len(images),
829829
caption=caption)
830830

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

0 commit comments

Comments
 (0)
0