Skip to content

Commit 865b7ac

Browse files
author
Moritz Schreiber
committed
Split test into two
1 parent 390fc86 commit 865b7ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/plotting/test_series.py

+10
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,16 @@ def test_bar_user_colors(self):
282282
result = [p.get_facecolor() for p in ax.patches]
283283
assert result == expected
284284

285+
def test_bar_user_colors_c(self):
286+
s = Series([1, 2, 3, 4])
287+
288+
expected = [
289+
(1.0, 0.0, 0.0, 1.0),
290+
(0.0, 0.0, 1.0, 1.0),
291+
(0.0, 0.0, 1.0, 1.0),
292+
(1.0, 0.0, 0.0, 1.0),
293+
]
294+
285295
ax = s.plot.bar(c=["red", "blue", "blue", "red"])
286296
result = [p.get_facecolor() for p in ax.patches]
287297
assert result == expected

0 commit comments

Comments
 (0)