Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5ab0b commit e32aca3Copy full SHA for e32aca3
lib/matplotlib/tests/test_pyplot.py
@@ -457,3 +457,9 @@ def test_figure_hook():
457
fig = plt.figure()
458
459
assert fig._test_was_here
460
+
461
462
+def test_multiple_same_figure_calls():
463
+ with pytest.warns(UserWarning, match="Ignoring specified arguments in this call"):
464
+ fig = mpl.pyplot.figure(1, figsize=(1, 2))
465
+ fig = mpl.pyplot.figure(1, figsize=(3, 4))
0 commit comments