[파이썬, Python] plot style 변경
matplotlib.pyplot 사용 시 style 변경하는 법입니다. 우선 라이브러리를 import 합니다. import matplotlib.pyplot as plt style 종류 리스트를 출력한 후 원하는 style로 설정해주고 사용하시면 됩니다. 1. 종류찾기 plt.style.available 결과 2. ggplot style plt.style.use('ggplot') plt.plot([1,2,3],[1,2,3]) plt.show() 결과 3. seaborn style plt.style.use('seaborn-v0_8') plt.plot([1,2,3],[1,2,3]) plt.show() 결과 4. grayscale style plt.style.use('grayscale') plt.plot([1,..