8000 Merge pull request #19638 from meeseeksmachine/auto-backport-of-pr-19… · matplotlib/matplotlib@f8305e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8305e5

Browse files
authored
Merge pull request #19638 from meeseeksmachine/auto-backport-of-pr-19632-on-v3.4.x
Backport PR #19632 on branch v3.4.x (Fix handling of warn keyword in in Figure.show.)
2 parents 637bb74 + 70efef0 commit f8305e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,8 @@ def show(self, warn=True):
22092209
try:
22102210
self.canvas.manager.show()
22112211
except NonGuiException as exc:
2212-
_api.warn_external(str(exc))
2212+
if warn:
2213+
_api.warn_external(str(exc))
22132214

22142215
def get_axes(self):
22152216
"""

0 commit comments

Comments
 (0)
0