Skip to content

Commit 0822d95

Browse files
committed
FIX: remove color lower as it was bad for CN color
1 parent a478a1c commit 0822d95

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/plotting/_matplotlib/style.py

-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ def _gen_list_of_colors_from_iterable(color: Collection[Color]) -> Iterator[Colo
123123
Yield colors from string of several letters or from collection of colors.
124124
"""
125125
for x in color:
126-
if isinstance(x, str):
127-
# to avoid warnings on upper case single letter colors
128-
x = x.lower()
129126
if _is_single_color(x):
130127
yield x
131128
else:

pandas/tests/plotting/test_style.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def test_empty_color_raises(self, color):
138138
@pytest.mark.parametrize(
139139
"color",
140140
[
141-
"BAD_COLOR",
142-
("red", "green", "BAD_COLOR"),
141+
"bad_color",
142+
("red", "green", "bad_color"),
143143
(0.1,),
144144
(0.1, 0.2),
145145
(0.1, 0.2, 0.3, 0.4, 0.5), # must be either 3 or 4 floats

0 commit comments

Comments
 (0)