8000 Add test case for Vega10 color · matplotlib/matplotlib@7856091 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7856091

Browse files
trphamtacaswell
authored andcommitted
Add test case for Vega10 color
1 parent 4a766a2 commit 7856091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,10 @@ def angled_plane(azimuth, elevation, angle, x, y):
571571
assert_array_almost_equal(h, np.cos(np.radians(angle)))
572572

573573

574-
def test_xkcd():
574+
def test_color_names():
575575
assert mcolors.to_hex("blue") == "#0000ff"
576576
assert mcolors.to_hex("xkcd:blue") == "#0343df"
577+
assert mcolors.to_hex("vega10:blue") == "#1f77b4"
577578

578579

579580
def _sph2cart(theta, phi):

0 commit comments

Comments
 (0)
0