파이썬 Pandas Barplot에서 x 축 눈금 레이블을 회전하는 방법
다음 코드로 : import matplotlib matplotlib.style.use('ggplot') import matplotlib.pyplot as plt import pandas as pd df = pd.DataFrame({ 'celltype':["foo","bar","qux","woz"], 's1':[5,9,1,7], 's2':[12,90,13,87]}) df = df[["celltype","s1","s2"]] df.set_index(["celltype"],inplace=True) df.plot(kind='bar',alpha=0.75) plt.xlabel("") 이 음모를 만들었습니다. x 축 눈금 레이블을 0 도로 회전하려면 어떻게해야합니까? 나는 이것을 추가하려고 시도했지만 작동하지 않았습니..
2020. 11. 19.