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.