Version 2.2.2
matplotlib

matplotlib.axis.Axis.get_ticklines

Axis.get_ticklines(minor=False)

Return the tick lines as a list of Line2D instances