matplotlib turn tick labels code example Example 1: tick labels vertical matplotlib plt.xticks(rotation=45) Example 2: adjust tick label size matplotlib plt.xticks(fontsize=)