Best practices for Matplotlib data visualization, plotting, and creating publication-quality figures in Python
Expert guidelines for Matplotlib development, focusing on data visualization, plotting, and creating publication-quality figures.
fig, ax = plt.subplots() for explicit controlax.plot(), ax.set_xlabel()plt.plot(), plt.xlabel() for quick, interactive plots%matplotlib inline in Jupyter notebooksax.plot()) for continuous data and trendsax.scatter()) for relationship between variablesax.bar(), ax.barh()) for categorical comparisonsax.hist()) for distributionsax.boxplot()) for statistical summariesax.imshow(), ax.pcolormesh()) for 2D dataax.annotate()) to highlight key pointsplt.subplots(nrows, ncols) for grid layoutsgridspec for complex, non-uniform layoutssharex=True, sharey=True for comparisonconstrained_layout=True or tight_layout() to prevent overlapfigsize=(width, height) in inchesplt.style.use('seaborn-v0_8'), 'ggplot'plt.style.use(['seaborn-v0_8', 'custom.mplstyle'])r'$\alpha = \frac{1}{2}$'bbox_inches='tight' to remove excess whitespacefacecolor for background colordpi appropriate for use casetransparent=True for overlaysrasterized=True for scatter plots with many pointsplt.close() after savingplt.close('all') in loops creating many figuresimport matplotlib.pyplot as pltnpx skills add Mindrally/matplotlib-best-practices下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer