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 a0902fe commit 717a221Copy full SHA for 717a221
lib/matplotlib/tests/test_multivariate_colormaps.py
@@ -315,14 +315,14 @@ def test_bivar_cmap_call():
315
# test origin
316
cmap = mpl.bivar_colormaps['BiOrangeBlue'].with_extremes(origin=(0.5, 0.5))
317
assert_allclose(cmap[0](0.5),
318
- (0.50244140625, 0.5024222412109375, 0.50244140625, 1))
+ (0.501953125, 0.501937744140625, 0.501953125, 1))
319
assert_allclose(cmap[1](0.5),
320
321
cmap = mpl.bivar_colormaps['BiOrangeBlue'].with_extremes(origin=(1, 1))
322
assert_allclose(cmap[0](1.),
323
- (0.99853515625, 0.9985467529296875, 0.99853515625, 1.0))
+ (0.998046875, 0.998062255859375, 0.998046875, 1.0))
324
assert_allclose(cmap[1](1.),
325
326
with pytest.raises(KeyError,
327
match="only 0 or 1 are valid keys"):
328
cs = cmap[2]
0 commit comments