Version 3.0.2
matplotlib

matplotlib.axis.XAxis.tick_top

XAxis.tick_top()[source]

Move ticks and ticklabels (if present) to the top of the axes.