본문 바로가기
Python_Wiki/Python_Library

Seaborn 스타일 설정

by yj-data 2025. 7. 14.
sns.set_style(스타일)   #스타일: darkgrid, whitegrid, dark, white
sns.set_palette(팔레트) #팔레트: 기본 세트는 아래 링크 참조

#example
sns.set_style('white')
sns.set_palette('flare')
sns.barplot(data=df, x='species', y='body_mass_g')
plt.show()

공식문서 스타일 링크

 

Choosing color palettes — seaborn 0.13.2 documentation

Choosing color palettes Seaborn makes it easy to use colors that are well-suited to the characteristics of your data and your visualization goals. This chapter discusses both the general principles that should guide your choices and the tools in seaborn th

seaborn.pydata.org