Skip to content

Commit f1e0e2a

Browse files
committed
BUG: Fix Incompatible argument type for set_xlabel and set_ylabel.
1 parent a173426 commit f1e0e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/hist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _post_plot_logic(self, ax: Axes, data) -> None:
212212
self.xlabel if isinstance(self.xlabel, str) else str(self.xlabel) # type: ignore[arg-type]
213213
)
214214
ax.set_ylabel(
215-
"Frequency" if self.ylabel is None else ylabel # type: ignore[arg-type]
215+
"Frequency" if self.ylabel is None else self.ylabel # type: ignore[arg-type]
216216
)
217217

218218
@property

0 commit comments

Comments
 (0)