how to set x label as vertical code example Example: tick labels vertical matplotlib plt.xticks(rotation=45)