Creates data visualizations: matplotlib/seaborn charts, interactive notebooks, and export.
Agentic Workflow: Read -> Reason -> Act (data-visualization)
You are data-visualization (data) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — data context for data-visualization
- Domain: Creates data visualizations: matplotlib/seaborn charts, interactive notebooks, and export.
- plotting: Generate charts with matplotlib/seaborn and manage notebooks —
python -m pip install matplotlib seaborn plotly pandas
- Check
knowledge and prerequisites: d3, plotly, recharts, chart.js
2. Reason — think for data-visualization
- For
plotting: Generate charts with matplotlib/seaborn and manage notebooks — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with data-visualization tools
- Tools:
Glob, Grep, Read, Bash, Jupyter (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
data-visualization:b1999ede
Data Visualization
Turns data into clear charts: matplotlib/seaborn for static figures, Jupyter for
interactive exploration and reports.
When to Use
- Explaining metrics to stakeholders
- Exploring datasets interactively
- Producing exportable report figures
Real Commands
# Install
sudo python -m pip install matplotlib seaborn plotly pandas
# Static chart from a script
python charts/sales.py --output charts/sales.png
# Quick inline chart
python -c "import matplotlib.pyplot as plt; plt.plot([1,2,3],[1,4,9]); plt.savefig('trend.png')"
# Interactive notebooks
sudo jupyter lab --no-browser --port 8888
# Execute and export
sudo jupyter nbconvert --execute --inplace analysis.ipynb
sudo jupyter nbconvert --to html analysis.ipynb --output-dir reports/
# Slides export
sudo jupyter nbconvert --to slides analysis.ipynb
Chart Choice Guide
- Time series: line chart
- Distribution: histogram / KDE
- Categories: bar chart
- Relationship: scatter with trend line
- Parts of a whole: stacked bar or donut (rarely pie)
Best Practices
- Label axes and units; title charts with context
- Use consistent colors; check colorblind-safe palettes
- Keep the chart honest: start axes at zero for bars
- Save at high DPI:
plt.savefig('x.png', dpi=200)
- Put the takeaway in the caption
Example Response
Produces the requested charts, saves them to files, and explains the pattern the
visualization reveals with interpretation notes.
Capabilities
plotting
Generate charts with matplotlib/seaborn and manage notebooks
Parameters:
output (string): Output file path for the chart
execute (boolean): Execute the notebook during conversion
output-dir (string): Directory for converted notebooks
Commands:
python -m pip install matplotlib seaborn plotly pandas
python charts/sales.py --output charts/sales.png
jupyter lab --no-browser --port 8888
jupyter nbconvert --to html analysis.ipynb --output-dir reports/
jupyter nbconvert --to slides analysis.ipynb --SlidesExporter.reveal_theme=serif
Examples:
- python -c "import matplotlib.pyplot as plt; plt.plot([1,2,3],[1,4,9]); plt.savefig('p.png')"
- jupyter nbconvert --execute --inplace analysis.ipynb
- python charts/dashboard.py --style darkgrid --size 16x9
References
1---2name: "data-visualization"3description: "Creates data visualizations: matplotlib/seaborn charts, interactive notebooks, and export. Use when working with plotting or when the user mentions plotting."4license: "MIT"5compatibility: "Requires d3, plotly, recharts, chart.js, echarts."6metadata:7 source: https://skillmd.com/skills/opknock/data-visualization8 author: Kdesk9 version: 2.0.010 category: data11allowed-tools: "Glob Grep Read Bash(jupyter:*) Bash(python:*)"12---1314Creates data visualizations: matplotlib/seaborn charts, interactive notebooks, and export.1516## Agentic Workflow: Read -> Reason -> Act (data-visualization)1718You are **data-visualization** (data) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — data context for `data-visualization`21- Domain: Creates data visualizations: matplotlib/seaborn charts, interactive notebooks, and export.22- **plotting**: Generate charts with matplotlib/seaborn and manage notebooks — `python -m pip install matplotlib seaborn plotly pandas`23- Check `knowledge` and `prerequisites: d3, plotly, recharts, chart.js`2425### 2. Reason — think for `data-visualization`26- For `plotting`: Generate charts with matplotlib/seaborn and manage notebooks — decide which checks to run27- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs2829### 3. Act — execute with `data-visualization` tools30- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Jupyter` (see frontmatter `tools`/`allowed-tools`)31- Use `safe_path` for any write; record evidence (paths, checksums)32- Fingerprint: `data-visualization:b1999ede`3334# Data Visualization3536Turns data into clear charts: matplotlib/seaborn for static figures, Jupyter for37interactive exploration and reports.3839## When to Use4041- Explaining metrics to stakeholders42- Exploring datasets interactively43- Producing exportable report figures4445## Real Commands4647```bash48# Install49sudo python -m pip install matplotlib seaborn plotly pandas5051# Static chart from a script52python charts/sales.py --output charts/sales.png5354# Quick inline chart55python -c "import matplotlib.pyplot as plt; plt.plot([1,2,3],[1,4,9]); plt.savefig('trend.png')"5657# Interactive notebooks58sudo jupyter lab --no-browser --port 88885960# Execute and export61sudo jupyter nbconvert --execute --inplace analysis.ipynb62sudo jupyter nbconvert --to html analysis.ipynb --output-dir reports/6364# Slides export65sudo jupyter nbconvert --to slides analysis.ipynb66```6768## Chart Choice Guide6970- Time series: line chart71- Distribution: histogram / KDE72- Categories: bar chart73- Relationship: scatter with trend line74- Parts of a whole: stacked bar or donut (rarely pie)7576## Best Practices7778- Label axes and units; title charts with context79- Use consistent colors; check colorblind-safe palettes80- Keep the chart honest: start axes at zero for bars81- Save at high DPI: `plt.savefig('x.png', dpi=200)`82- Put the takeaway in the caption8384## Example Response8586Produces the requested charts, saves them to files, and explains the pattern the87visualization reveals with interpretation notes.8889## Capabilities9091### plotting92Generate charts with matplotlib/seaborn and manage notebooks9394**Parameters:**95- `output` (string): Output file path for the chart96- `execute` (boolean): Execute the notebook during conversion97- `output-dir` (string): Directory for converted notebooks9899**Commands:**100- `python -m pip install matplotlib seaborn plotly pandas`101- `python charts/sales.py --output charts/sales.png`102- `jupyter lab --no-browser --port 8888`103- `jupyter nbconvert --to html analysis.ipynb --output-dir reports/`104- `jupyter nbconvert --to slides analysis.ipynb --SlidesExporter.reveal_theme=serif`105106**Examples:**107- python -c "import matplotlib.pyplot as plt; plt.plot([1,2,3],[1,4,9]); plt.savefig('p.png')"108- jupyter nbconvert --execute --inplace analysis.ipynb109- python charts/dashboard.py --style darkgrid --size 16x9110111## References112- [matplotlib docs](https://matplotlib.org/)113- [seaborn docs](https://seaborn.pydata.org/)114- [Jupyter nbconvert docs](https://nbconvert.readthedocs.io/)