matplotlib.axes.Axes.get_yticks

Axes.get_yticks(self, \*, minor=False)

Return the y ticks as a list of locations