Skip to content

Commit a52582a

Browse files
committed
Adding whatsnew and issue reference in test (pandas-dev#20585)
1 parent 8265f94 commit a52582a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/source/whatsnew/v0.24.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ Plotting
683683

684684
- Bug in :func:`DataFrame.plot.scatter` and :func:`DataFrame.plot.hexbin` caused x-axis label and ticklabels to disappear when colorbar was on in IPython inline backend (:issue:`10611`, :issue:`10678`, and :issue:`20455`)
685685
- Bug in plotting a Series with datetimes using :func:`matplotlib.axes.Axes.scatter` (:issue:`22039`)
686+
- Bug in colors selection in :func:`DataFrame.plot.bar` which causes different colors to be used when no color is specified (:issue:`20585`)
686687

687688
Groupby/Resample/Rolling
688689
^^^^^^^^^^^^^^^^^^^^^^^^

pandas/tests/plotting/test_series.py

+2
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def test_bar_user_colors(self):
270270
assert result == expected
271271

272272
def test_bar_user_colors_limited(self):
273+
# GH 20585
273274
s = Series([1, 2, 3, 4])
274275
ax = s.plot.bar(color=['red', 'blue'])
275276
result = [p.get_facecolor() for p in ax.patches]
@@ -293,6 +294,7 @@ def test_bar_user_colors_more_limited(self):
293294

294295
@pytest.mark.parametrize("num_colors",range(0,15))
295296
def test_standard_color(self, num_colors):
297+
# GH 20585
296298
colors = _get_standard_colors(num_colors=num_colors)
297299

298300
assert len(colors) == num_colors

0 commit comments

Comments
 (0)