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

Skip to content

Commit 4b0417e

Browse files
committed
Exclude the 'clear' argument
1 parent fe92ce3 commit 4b0417e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,10 @@ def figure(
996996
if num is None:
997997
num = next_num
998998
else:
999-
if any([figsize, dpi, facecolor, edgecolor, not frameon, clear,
999+
if any([figsize, dpi, facecolor, edgecolor, not frameon,
10001000
kwargs]) and num in allnums:
10011001
_api.warn_external(
1002-
"Ignoring specified arguments in this call"
1002+
"Ignoring specified arguments in this call "
10031003
f"because figure with num: {num} already exists")
10041004
if isinstance(num, str):
10051005
fig_label = num

0 commit comments

Comments
 (0)