matplotlib.axes.Axes.get_yticks

Axes.get_yticks(*, minor=False)

Return the y ticks as a list of locations