Skip to content

Commit

Permalink
BUG: Fix xrot=0 in DataFrame.hist for subplots
Browse files Browse the repository at this point in the history
  • Loading branch information
souvik3333 committed Dec 26, 2019
1 parent 9c6771c commit 43d2c4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/plotting/_matplotlib/hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def _grouped_hist(
def plot_group(group, ax):
ax.hist(group.dropna().values, bins=bins, **kwargs)

xrot = xrot or rot
if xrot is None:
xrot = rot

fig, axes = _grouped_plot(
plot_group,
Expand Down

0 comments on commit 43d2c4f

Please sign in to comment.