파이썬. 데이터분석/Seaborn
seaborn 설정 : sns.set_style,context 그래프 다듬기
한국수달보호협회장
2022. 6. 30. 23:20
https://hleecaster.com/python-seaborn-set-style-and-context/
[seaborn] 스타일 사용자 정의 (set_style, set_context) - 아무튼 워라밸
본 포스팅에서는 seaborn의 set_style, set_context를 활용해 시각화된 자료를 세부적으로 스타일링 하는 방법을 소개한다.
hleecaster.com
Background color, Grid, Despine(축/테두리) 설정/해제 방법
style, context, 마지막 부분에 rc(run command) 딕셔너리까지 설명해준다.
seaborn 그래프를 간편하게 다듬을 수 있다.
sns.set_style("darkgrid")
#darkgrid.whitegrid,ticks,dark,white
sns.set_context('poster') #축에 있는 글자 커짐
sms.set(font_scale=2)는 전역설정이다.
ㄴ계속 실행하면 사이즈가 갈수록 커진다. 그러므로 한번만 실행하고 주석처리 해야된다.