The most widely used library for 2D (and basic 3D) plotting. It provides full control over every element of a figure, from line styles to axis spines.
Official docs: https://matplotlib.org/stable/index.html Gallery: https://matplotlib.org/stable/gallery/index.html (Essential for finding examples) Search patterns: plt.subplots, ax.settitle, ax.legend, plt.savefig, matplotlib.colors
| Object-Oriented (OO) | fig, ax = plt.subplots() | Recommended. Best for complex, reproducible plots. | | Pyplot (State-based) | plt.plot(x, y) | Quick interactive checks. Avoid for scripts/modules. |
Python에서 정적, 애니메이션 및 대화형 시각화를 생성하기 위한 기본 라이브러리입니다. 고도로 맞춤화 가능하며 출판 품질 수치에 대한 업계 표준입니다. 2D 플로팅, 과학 데이터 시각화, 히트맵, 등고선, 벡터 필드, 다중 패널 그림, LaTeX 형식 플롯, 사용자 정의 시각화 도구 및 NumPy 배열 또는 Pandas DataFrames의 플로팅에 사용됩니다. 출처: tondevrel/scientific-agent-skills.