matplotlib x axis tick labels and ables code example Example: own labels for ticks matplotlib ax.set_xticklabels(labels)