Home [Python] Matplotlib 스타일 지정하기
Post
Cancel

[Python] Matplotlib 스타일 지정하기

가능한 스타일 확인

1
2
3
import matplotlib.pyplot as plt
print(plt.style.available)
# ['Solarize_Light2', '_classic_test_patch', 'bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn', 'seaborn-bright', 'seaborn-colorblind', 'seaborn-dark', 'seaborn-dark-palette', 'seaborn-darkgrid', 'seaborn-deep', 'seaborn-muted', 'seaborn-notebook', 'seaborn-paper', 'seaborn-pastel', 'seaborn-poster', 'seaborn-talk', 'seaborn-ticks', 'seaborn-white', 'seaborn-whitegrid', 'tableau-colorblind10']

스타일 지정

1
2
3
4
import matplotlib.pyplot as plt 
plt.style.use('seaborn')
# 지정해도 변하지 않는다면 seaborn이 없어서
# pip install seaborn

참고

https://matplotlib.org/stable/tutorials/introductory/customizing.html

This post is licensed under CC BY 4.0 by the author.

[Python] 공공데이터 부동산 실거래 가져오기

Mysql Without Duplicate