Axes.get_yaxis()
[Discouraged] Return the YAxis instance.
Discouraged
The use of this function is discouraged. You should instead directly access the attribute ax.yaxis.
ax.yaxis