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 359de9f commit 4c8205fCopy full SHA for 4c8205f
1 file changed
lib/matplotlib/tests/test_contour.py
@@ -279,6 +279,25 @@ def test_contourf_decreasing_levels():
279
assert_equal(len(w), 2)
280
281
282
+@cleanup
283
+def test_vminvmax_warning():
284
+ z = [[0.1, 0.3], [0.5, 0.7]]
285
+ plt.figure()
286
+ cs = plt.contourf(z, [0.0, 1.0])
287
+
288
+ with warnings.catch_warnings(record=True) as w:
289
+ cs.vmin
290
+ assert len(w) == 1
291
+ assert (str(w[0].message).startswith(
292
+ ("vmin is deprecated and will be removed in 2.2 ")))
293
294
295
+ cs.vmax
296
297
298
+ ("vmax is deprecated and will be removed in 2.2 ")))
299
300
301
if __name__ == '__main__':
302
import nose
303
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
0 commit comments