how to make matplotlib axis values display vertical code example Example: tick labels vertical matplotlib plt.xticks(rotation=45)