tick label positions for matplotlib 3D plot

前端 未结 3 2085
说谎
说谎 2021-01-02 10:04

I am trying to work out how to set/correct the position of tick labels for a 3D matplotlib plot. Tick labels do not align with the ticks. The issue seems to be especially pr

3条回答
  •  遥遥无期
    2021-01-02 10:20

    By using these alignments, I get much better placements:

    ax.set_yticklabels(labels,rotation=-15,
                       verticalalignment='baseline',
                       horizontalalignment='left')
    

    I've modified the example with less tick markers so you can see the placement:

    enter image description here

提交回复
热议问题