Skip to content

Commit ea8ac82

Browse files
committed
fix linting and stackplot test
1 parent 55d1a5e commit ea8ac82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3197,7 +3197,7 @@ def grouped_bar(self, heights, *, positions=None, group_spacing=1.5, bar_spacing
31973197
Properties applied to all bars. The following properties additionally
31983198
accept a sequence of values corresponding to the datasets in
31993199
*heights*:
3200-
3200+
32013201
- *edgecolor*
32023202
- *facecolor*
32033203
- *linewidth*

lib/matplotlib/tests/test_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,13 +3455,13 @@ def test_stackplot_facecolor():
34553455
fig, ax = plt.subplots()
34563456

34573457
colls = ax.stackplot(x, y1, y2, facecolor=facecolors, colors=['c', 'm'])
3458-
for coll, fcol in zip(colls, facecolors):
3459-
assert mcolors.same_color(coll.get_facecolor(), facecolors)
3458+
for coll, fcolor in zip(colls, facecolors):
3459+
assert mcolors.same_color(coll.get_facecolor(), fcolor)
34603460

34613461
# Plural alias should also work
34623462
colls = ax.stackplot(x, y1, y2, facecolors=facecolors, colors=['c', 'm'])
3463-
for coll, fcol in zip(colls, facecolors):
3464-
assert mcolors.same_color(coll.get_facecolor(), facecolors)
3463+
for coll, fcolor in zip(colls, facecolors):
3464+
assert mcolors.same_color(coll.get_facecolor(), fcolor)
34653465

34663466

34673467
def test_stackplot_subfig_legend():

0 commit comments

Comments
 (0)