diff --git a/pandas_bokeh/plot.py b/pandas_bokeh/plot.py index a21d520..c2ba881 100644 --- a/pandas_bokeh/plot.py +++ b/pandas_bokeh/plot.py @@ -146,6 +146,8 @@ def plot( # noqa C901 hovertool_string=None, rangetool=False, vertical_xlabel=False, + group_xlabel=False, + subgroup_xlabel=False, x_axis_location="below", webgl=True, reuse_plot=None, # This keyword is not used by Pandas-Bokeh, but pandas plotting API adds it for series object calls @@ -833,6 +835,14 @@ def plot( # noqa C901 elif vertical_xlabel is not False: p.xaxis.major_label_orientation = vertical_xlabel + # Group level xlabel rotation if wanted: + if group_xlabel is not False: + p.xaxis.group_label_orientation = group_xlabel + + # Subgroup level xlabel rotation if wanted: + if subgroup_xlabel is not False: + p.xaxis.subgroup_label_orientation = subgroup_xlabel + # Set panning option: if panning is False: p.toolbar.active_drag = None