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

Skip to content

Commit 6263284

Browse files
committed
MNT: add warnings to Figure.show
1 parent 98ae26c commit 6263284

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/figure.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ def show(self, warn=True):
395395
python script, you should use `matplotlib.pyplot.show` instead,
396396
which takes care of managing the event loop for you.
397397
398+
.. warning
399+
400+
If the GUI event loop is not running the figure will be shown,
401+
but will not be responsive and may not draw.
402+
398403
Parameters
399404
----------
400405
warn : bool, default: True

0 commit comments

Comments
 (0)