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

Skip to content

Commit 917b3d2

Browse files
committed
Bugfix to support Numpy's "doctest" style input to the plot_directive.
1 parent df50940 commit 917b3d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ def render_figures(code, code_path, output_dir, output_base, context,
561561
clear_state(config.plot_rcparams)
562562
run_code(code_piece, code_path, ns, function_name)
563563

564+
images = []
564565
fig_managers = _pylab_helpers.Gcf.get_all_fig_managers()
565566
for j, figman in enumerate(fig_managers):
566567
if len(fig_managers) == 1 and len(code_pieces) == 1:

0 commit comments

Comments
 (0)