Skip to content

Commit 042ff7d

Browse files
committed
Fixing incompatible _plot signature in HistPlot with superclass LinePlot
1 parent ba0bc05 commit 042ff7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/plotting/_matplotlib/hist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def _plot( # type: ignore[override]
113113
column_num: int = 0,
114114
stacking_id=None,
115115
*,
116-
bins,
117116
**kwds,
118-
# might return a subset from the possible return types of Axes.hist(...)[2]?
117+
# might return a subset from the possible return types of Axes.hist(...)?
119118
) -> BarContainer | Polygon | list[BarContainer | Polygon]:
119+
bins = kwds.pop("bins")
120120
if column_num == 0:
121121
cls._initialize_stacker(ax, stacking_id, len(bins) - 1)
122122

0 commit comments

Comments
 (0)