To rotate axis labels in Matplotlib, use the xticks(~) and the yticks(~) method: plt.plot([1,2,3]). plt.xticks(rotation=90). plt.show(). filter_none Copy.
確定! 回上一頁