xenodium/emacs-skills/matplotlib
Claude Code and agent skill by xenodium/emacs-skills
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user invokes "/matplotlib" to plot data from the current context using matplotlib (via uv) and output the resulting image path.
Install
npx vskill@latest install xenodium/emacs-skills/matplotlibSKILL.md
Plot data with matplotlib
Plot data from the most recent interaction context using matplotlib. Generate a PNG image with a transparent background and output it as a markdown image so it renders inline.
How to plot
- Extract or derive plottable data from the current context.
- If the Emacs foreground color is not already known from a previous plot in this session, query it:
``sh emacsclient --eval ' (face-foreground (quote default))' ` This returns a hex color like "#eeffff"`. Reuse it for all subsequent plots.
- Write a Python script to a temporary file using that color.
- Run the script with
uv run --with matplotlib. - Output the result as a markdown image on its own line:
``  ``
Python script template
Rules
- Query the Emacs foreground color once per session and reuse it for all subsequent plots. Only query again if the color is not already known.
- Always use
fig.patch.set_alpha(0)andax.set_facecolor('none')for transparent background. - Always use
transparent=Trueinsavefig. - Always use a timestamp in the filename (e.g.,
/tmp/agent-plot-$(date +%s).png). Never use descriptive names likeagent-plot-lorenz.png. - Always run scripts with
uv run --with matplotlib. Do not usepip install. - After the script runs successfully, output a markdown image (
) on its own line. - Choose an appropriate plot type for the data (line, bar, scatter, histogram, pie, heatmap, etc.).
- Include a title, axis labels, and a legend when they add clarity.
- Style the legend to match the theme:
ax.legend(facecolor='#1a1a2e', edgecolor=FG, labelcolor=FG)for dark backgrounds. - Use
ax.grid(True, alpha=0.2, color=FG)for subtle gridlines. - Hide top and right spines for a cleaner look.
- If no plottable data exists in the recent context, inform the user.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/matplotlib/SKILL.md
Popularity
- Repository stars
- 116
- Repository forks
- 16
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xenodium/emacs-skills/matplotlib)