8000 Fix handling of warn keyword in in Figure.show. · matplotlib/matplotlib@72a6466 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72a6466

Browse files
committed
Fix handling of warn keyword in in Figure.show.
It was accidentally ignored since 154a616.
1 parent b7d57c9 commit 72a6466

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