Aligning rotated xticklabels with their respective xticks

前端 未结 4 1454
刺人心
刺人心 2020-11-27 11:24

Check the x axis of the figure below. How can I move the labels a bit to the left so that they align with their respective ticks?

I\'m rotating the labels using:

4条回答
  •  执笔经年
    2020-11-27 11:43

    If you dont want to modify the xtick labels, you can just use:

    plt.xticks(rotation=45)

提交回复
热议问题