Skip to content

Commit 6bc258f

Browse files
authored
Merge pull request #19 from 1kastner/patch-1
Return manager instead of None - fixes #18. Will release quickly a 0.1.6 with this fix.
2 parents f33be24 + 023bc08 commit 6bc258f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib_inline/backend_inline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def new_figure_manager_given_figure(num, figure):
5252
# should be a no-op (otherwise we'll generate duplicate plots, since a user
5353
# who set ioff() manually expects to make separate draw/show calls).
5454
if not matplotlib.is_interactive():
55-
return
55+
return manager
5656

5757
# ensure current figure will be drawn, and each subsequent call
5858
# of draw_if_interactive() moves the active figure to ensure it is

0 commit comments

Comments
 (0)