ax1.plot(list(range(2)), list(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')
Make longer subplot tick marks in matplotlib?