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 ec3c8be commit 7e83dffCopy full SHA for 7e83dff
3 files changed
lib/matplotlib/tests/test_triangulation.py
@@ -280,6 +280,8 @@ def test_tripcolor_color():
280
with pytest.raises(TypeError,
281
match="positional.*'c'.*keyword-only.*'facecolors'"):
282
ax.tripcolor(x, y, C=[1, 2, 3, 4])
283
+ with pytest.raises(TypeError, match="Unexpected positional parameter"):
284
+ ax.tripcolor(x, y, [1, 2], 'unused_positional')
285
286
# smoke test for valid color specifications (via C or facecolors)
287
ax.tripcolor(x, y, [1, 2, 3, 4]) # edges
@@ -303,9 +305,6 @@ def test_tripcolor_warnings():
303
305
y = [0, -1, 0, 1]
304
306
c = [0.4, 0.5]
307
fig, ax = plt.subplots()
- # additional parameters
- with pytest.warns(DeprecationWarning, match="Additional positional param"):
308
- ax.tripcolor(x, y, c, 'unused_positional')
309
# facecolors takes precedence over c
310
with pytest.warns(UserWarning, match="Positional parameter c .*no effect"):
311
ax.tripcolor(x, y, c, facecolors=c)
lib/matplotlib/tests/test_widgets.py
@@ -138,7 +138,7 @@ def test_deprecation_selector_visible_attribute(ax):
138
assert tool.get_visible()
139
140
with pytest.warns(mpl.MatplotlibDeprecationWarning,
141
- match="was deprecated in Matplotlib 3.6"):
+ match="was deprecated in Matplotlib 3.8"):
142
tool.visible = False
143
assert not tool.get_visible()
144
lib/matplotlib/widgets.py
@@ -2429,7 +2429,7 @@ def get_visible(self):
2429
2430
@property
2431
def visible(self):
2432
- _api.warn_deprecated("3.6", alternative="get_visible")
+ _api.warn_deprecated("3.8", alternative="get_visible")
2433
return self.get_visible()
2434
2435
def clear(self):
0 commit comments