Rotating minor tick labels for categorical Bokeh plot

前端 未结 1 715
甜味超标
甜味超标 2021-01-19 06:00

I am trying to rotate the major- and the minor axis within a multi-categorical plot in Bokeh (similar to what is done for major tick labels here and done within mat

相关标签:
1条回答
  • 2021-01-19 06:37

    UPDATE

    This capability was added in Bokeh 0.12.16, you can now do:

    p.xaxis.major_label_orientation = "vertical"
    p.xaxis.subgroup_label_orientation = "normal"
    p.xaxis.group_label_orientation = 0.8
    

    It's not possible in Bokeh 0.12.13, the orientation of labels for levels other than the first one is always parallel: https://github.com/bokeh/bokeh/blob/0.12.13/bokehjs/src/coffee/models/axes/categorical_axis.coffee#L89-L92

    You're welcome to create a GitHub issue with a feature request if you need this functionality.

    0 讨论(0)
提交回复
热议问题