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

Skip to content

Commit 388fa7d

Browse files
committed
Exclude the 'clear' argument
1 parent a2f6b3b commit 388fa7d

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
@@ -976,10 +976,10 @@ def figure(
976976
if num is None:
977977
num = next_num
978978
else:
979-
if any([figsize, dpi, facecolor, edgecolor, not frameon, clear,
979+
if any([figsize, dpi, facecolor, edgecolor, not frameon,
980980
kwargs]) and num in allnums:
981981
_api.warn_external(
982-
"Ignoring specified arguments in this call"
982+
"Ignoring specified arguments in this call "
983983
f"because figure with num: {num} already exists")
984984
if isinstance(num, str):
985985
fig_label = num

0 commit comments

Comments
 (0)