Skip to content

Commit 43d2c4f

Browse files
committed
BUG: Fix xrot=0 in DataFrame.hist for subplots
1 parent 9c6771c commit 43d2c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/plotting/_matplotlib/hist.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ def _grouped_hist(
250250
def plot_group(group, ax):
251251
ax.hist(group.dropna().values, bins=bins, **kwargs)
252252

253-
xrot = xrot or rot
253+
if xrot is None:
254+
xrot = rot
254255

255256
fig, axes = _grouped_plot(
256257
plot_group,

0 commit comments

Comments
 (0)