본문 바로가기

언어 꿀Tip/Python 꿀tip!

07_01_44. seaborn multiple line chart 여러개 동시에 그래프그리기

import seaborn as sns

# df 내 months별 추이를 보고싶음
# cd별 month 에 따른 qty 추이

g = sns.lineplot(x="months", y="qty", hue="cd", data=df)
g.legend(loc='upper right', bbox_to_anchor=(1.01,1)) # 범례 위치 지정