Version 3.1.2
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.get_ygridlines

Axes.get_ygridlines(self)

Get the y grid lines as a list of Line2D instances.