Version 2.2.3
matplotlib

matplotlib.axis.XAxis.set_major_formatter

XAxis.set_major_formatter(formatter)

Set the formatter of the major ticker

ACCEPTS: A Formatter instance