set_xticks() and set_xticklabels() control where the tick marks sit on an axis and what text labels them.