Version 3.1.2
matplotlib

matplotlib.axes.Axes.get_ygridlines

Axes.get_ygridlines()

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