파이썬. 데이터분석/Matplotlib
★Matplotlib 매개변수 총정리 - stateful
한국수달보호협회장
2022. 7. 17. 15:46
#스타일설정
plt.style.use('fivethirtyeight')
plt.figure(figsize=(15, 7))
plt.bar(x리스트, y리스트, width=0.5, edgecolor='black'
plt.xlabel('명칭', labelpad = 숫자, fontweight='bold', fontsize=15)
-plt.xlabel(fontsize=15)하면 에러. plt.xlabel('X축', fontsize=15) 이런식으로 명칭을 적어줘야 작동됨
plt.ylabel 동일
labelpad = xlabel이 그래프와 얼마나 떨어져있는지
plt.xticks(rotation=45, fontweight='bold'