What problem does it solve?
Matplotlib centralizes the complexity of creating, customizing, and exporting scientific visualizations so users can produce clear, reproducible figures for analysis, presentation, and publication without wrestling with inconsistent defaults or layout issues.
Core Features & Use Cases
- Flexible interfaces: Guidance for both the pyplot convenience API and the recommended object-oriented Figure/Axes API for robust, maintainable plotting code.
- Wide plot coverage: Examples and patterns for line, scatter, bar, histogram, heatmap, contour, box/violin, polar, quiver, and 3D plots plus animations.
- Layout and export: Best practices for subplots, GridSpec/mosaic layouts, constrained/tight layout management, and exporting to PNG/PDF/SVG with DPI and bounding controls.
- Styling and accessibility: Advice on rcParams, style sheets, perceptually-uniform colormaps, colorblind-friendly palettes, and publication-ready typography.
- Performance and troubleshooting: Tips for large datasets (rasterization, downsampling), interactive backends, and common issue resolutions.
- Included tools and references: Helper scripts for templates and style configuration and reference documents covering API, plot types, styling, and common issues.
Quick Start
Generate and save a publication-quality figure using the object-oriented API and export it as a high-resolution PNG.