Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2060494 + 468f6e0 commit f852c0cCopy full SHA for f852c0c
lib/matplotlib/pyplot.py
@@ -531,6 +531,13 @@ def make_active(event):
531
_pylab_helpers.Gcf.set_active(figManager)
532
figManager.canvas.figure.number = num
533
534
+ # make sure backends (inline) that we don't ship that expect this
535
+ # to be called in plotting commands to make the figure call show
536
+ # still work. There is probably a better way to do this in the
537
+ # FigureManager base class.
538
+ if matplotlib.is_interactive():
539
+ draw_if_interactive()
540
+
541
if _INSTALL_FIG_OBSERVER:
542
figManager.canvas.figure.add_callback(_auto_draw_if_interactive)
543
0 commit comments