from matplotlib import pyplot as plt
plt.plot([1, 2, 3], [3, 4, 3])
ax = plt.gca()
ax.set_xticks([1, 2, 3])
ax.set_xticklabels(['1/1', '1/2', '1/3'])
Python & Matplotlib - Creating date ticks from string