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

Skip to content

Commit 717a221

Browse files
committed
Update values in a test
1 parent a0902fe commit 717a221

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_multivariate_colormaps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ def test_bivar_cmap_call():
315315
# test origin
316316
cmap = mpl.bivar_colormaps['BiOrangeBlue'].with_extremes(origin=(0.5, 0.5))
317317
assert_allclose(cmap[0](0.5),
318-
(0.50244140625, 0.5024222412109375, 0.50244140625, 1))
318+
(0.501953125, 0.501937744140625, 0.501953125, 1))
319319
assert_allclose(cmap[1](0.5),
320-
(0.50244140625, 0.5024222412109375, 0.50244140625, 1))
320+
(0.501953125, 0.501937744140625, 0.501953125, 1))
321321
cmap = mpl.bivar_colormaps['BiOrangeBlue'].with_extremes(origin=(1, 1))
322322
assert_allclose(cmap[0](1.),
323-
(0.99853515625, 0.9985467529296875, 0.99853515625, 1.0))
323+
(0.998046875, 0.998062255859375, 0.998046875, 1.0))
324324
assert_allclose(cmap[1](1.),
325-
(0.99853515625, 0.9985467529296875, 0.99853515625, 1.0))
325+
(0.998046875, 0.998062255859375, 0.998046875, 1.0))
326326
with pytest.raises(KeyError,
327327
match="only 0 or 1 are valid keys"):
328328
cs = cmap[2]

0 commit comments

Comments
 (0)