[matplotlib.pyplot] suptitle
·
코딩/시각화
`matplotlib.pyplot`에서 가끔 부제목이 필요할 때가 있다. 특별히 `subtitle`이 구현되어있지는 않지만, `suptitle`은 구현되어있다.matplotlib.pyplot.suptitle(t, **kwargs)취향차이겠지만, 저는 중앙에 부제목이 오는것이 좋아 `x`파라미터는 건들지 않습니다. 그 외에 자주 수정하는 파라미터는 `y`, `fontsize`정도 입니다. 아래는 기본적인 경우입니다.import matplotlib.pyplot as pltx = [1, 2, 3, 4, 5]y = [10, 20, 15, 25, 30]plt.plot(x, y)plt.title("Title")plt.suptitle("Subtitle")plt.show() 디폴트로 들어간 `y`를 사용하면 결과물이 ..