Version 2.2.3
matplotlib

matplotlib.axes.Axes.get_xgridlines

Axes.get_xgridlines()

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