Version 3.0.2
matplotlib

matplotlib.axes.Axes.get_ygridlines

Axes.get_ygridlines()

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