본문 바로가기

시각화/Seaborn

Seaborn - 스타일 변경 : set_style

반응형

데이터 불러오기

 

https://steadiness-193.tistory.com/196

 

Seaborn - 이차원 밀집도 : kdeplot

이차원 밀집도는 두개의 컬럼을 이용하며 kdeplot으로 그릴 수 있다. seaborn의 타이타닉 데이터에서 https://steadiness-193.tistory.com/78 판다스 - 특잇값(outlier) 찾아내기 : Tukey Fences, Z-score https:/..

steadiness-193.tistory.com

 

위 포스팅에서 아웃라이어와 누락값들을 제거한 타이타닉 데이터프레임을 이용한다.

 

 

 

 

 

seaborn의 set_style 메서드로 바꿀 수 있는 스타일은

 

darkgrid, whitegrid, dark, white, ticks가 있다.

 

tick를 제외한 4가지와 set 메서드로 바꿀 수 있는 스타일, 총 5가지를 살펴보자

 

 

 

 

 

 

기본

 

 

 

 

 

whitegrid

 

 

 

 

 

 

 

darkgrid

 

 

 

 

 

 

dark

 

 

 

 

 

 

white

 

 

 

 

 

 

sns.set(color_codes=True)

 

 

 

이 마지막 스타일이 제일 보기 좋은 것 같다.

 

 

 

실제로 lmplot에 적용해봐도

 

 

 

 

시각적으로 더 이뻐보인다.

 

 

반응형