tick labels in matplotlib code example Example 1: tick labels vertical matplotlib plt.xticks(rotation=45) Example 2: own labels for ticks matplotlib ax.set_xticklabels(labels)