Skip to content

Commit

Permalink
Add support for group and subgroup label manipulation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbrown1055 committed Apr 10, 2024
1 parent 95b0475 commit 82d21d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pandas_bokeh/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82d21d7

Please sign in to comment.