File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,18 @@ def show(self, warn=True):
411
411
:class:`~matplotlib.backend_bases.FigureManagerBase`, and
412
412
will raise an AttributeError.
413
413
414
+ .. warning::
415
+ This does not manage an GUI event loop. Consequently, the figure
416
+ may only be shown briefly or not shown at all if you or your
417
+ environment are not managing an event loop.
418
+
419
+ Proper use cases for `.Figure.show` include running this from a
420
+ GUI application or an IPython shell.
421
+
422
+ If you're running a pure python shell or executing a non-GUI
423
+ python script, you should use `matplotlib.pyplot.show` instead,
424
+ which takes care of managing the event loop for you.
425
+
414
426
Parameters
415
427
----------
416
428
warn : bool
You can’t perform that action at this time.
0 commit comments