Make longer subplot tick marks in matplotlib?

后端 未结 1 1344
渐次进展
渐次进展 2021-02-07 00:55

I am trying to alter the tick marks along the axes of a python multipanel subplot. I have two panels that share a common x-axis. I have made the border around the plot thicker

相关标签:
1条回答
  • 2021-02-07 01:30

    Try the following:

    #example figure1
    ax1.plot(range(2),range(2),linewidth=2)
    ax1.minorticks_on()
    ax1.tick_params('both', length=20, width=2, which='major')
    ax1.tick_params('both', length=10, width=1, which='minor')
    

    You can repeat the same for ax2. Does this work for you?

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