Version 3.0.2
matplotlib

matplotlib.axes.Axes.get_xgridlines

Axes.get_xgridlines()

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