Вы можете выровнять метки снизу, чтобы они выглядели смещенными к вершине по сравнению с отметками.
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.tick_params(axis="y", length=20, pad=0)
plt.setp(ax.get_yticklabels(), va="bottom", ha="left")
plt.show()

Эквивалент plt.setp
, если не нужно импортировать pyplot, будет
for t in ax.get_yticklabels():
t.set(va="bottom", ha="left")