plot-ml-figure
/plot-ml-figure
Pick pandas, seaborn, plotly, or matplotlib before writing figure code. Trigger when explore-ml-data, evaluate-ml-pipeline, or audit-ml-pipeline is about to save or display a chart, or when the user asks for a plot. Not a session owner. Not for skore/sklearn Display plots that already exist on a report. HOW TO USE: first match on the tree (owned plot, interactive iframe HTML, seaborn statistical, pandas chart, else matplotlib). In a notebook: save PNG (or HTML) then leave the figure as the cell output; never `plt.close`. Convert polars at the plot boundary. Missing lib → add-python-package. Co
- Author
- probabl-ai ↗
- Repository
- skore-skills ↗
- Licence
- BSD-3-Clause
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
BSD-3-Clause, otwarta.
What it does and when to use it
Pick pandas, seaborn, plotly, or matplotlib before writing figure code. Trigger when explore-ml-data, evaluate-ml-pipeline, or audit-ml-pipeline is about to save or display a chart, or when the user asks for a plot. Not a session owner. Not for skore/sklearn Display plots that already exist on a report. HOW TO USE: first match on the tree (owned plot, interactive iframe HTML, seaborn statistical, pandas chart, else matplotlib). In a notebook: save PNG (or HTML) then leave the figure as the cell output; never `plt.close`. Convert polars at the plot boundary. Missing lib → add-python-package. Co
Original author description
Pick pandas, seaborn, plotly, or matplotlib before writing figure code. Trigger when explore-ml-data, evaluate-ml-pipeline, or audit-ml-pipeline is about to save or display a chart, or when the user asks for a plot. Not a session owner. Not for skore/sklearn Display plots that already exist on a report. HOW TO USE: first match on the tree (owned plot, interactive iframe HTML, seaborn statistical, pandas chart, else matplotlib). In a notebook: save PNG (or HTML) then leave the figure as the cell output; never `plt.close`. Convert polars at the plot boundary. Missing lib → add-python-package. Co
How it works
- Sequence
- Stop conditions
SKILL.md preview
--- name: plot-ml-figure description: > Pick pandas, seaborn, plotly, or matplotlib before writing figure code. Trigger when explore-ml-data, evaluate-ml-pipeline, or audit-ml-pipeline is about to save or display a chart, or when the user asks for a plot. Not a session owner. Not for skore/sklearn Display plots that already exist on a report. HOW TO USE: first match on the tree (owned plot, interactive iframe HTML, seaborn statistical, pandas chart, else matplotlib). In a notebook: save PNG (or HTML) then leave the figure as the cell output; never `plt.close`. Convert polars at the plot boundary. Missing lib → add-python-package. Confirm symbols with `api get`. The caller names the figure directory. metadata: role: helper modelTier: small --- # Plot ML Figure Worker. Callers own the file and the turn. Do not `git end-turn`. Details: `references/when.md`. ## Sequence 1. If a **skore report** or **sklearn Display** already plots this, use it. Stop. 2. If **interactivity** (hover, zoom, pan) is the requirement: Plotly Express. Write `<caller-figure-dir>/<slug>.html` with `include_plotlyjs=True` (inline, offline). `explore-ml-data` uses `data_analysis/`. Do not overwrite that caller’s owned HTML (e.g. `data_analysis_<slug>.html`). The caller embeds `<iframe src="<slug>.html" width="100%" height="640"></iframe>` in **its** markdown beside the implication. Do not add kaleido unless the user asked to export a static image. No Dash. Do not use a CDN. 3. If the plot is **statistical** on a tidy DataFrame (distribution, categorical compare, relationship, heatmap, pairplot, facet): seaborn figure-level when a notebook will display it ( `displot`, `relplot`, `catplot`, `pairplot`, `heatmap` via `FacetGrid` / axes only if already on a grid). Not a `plt.subplots` loop and not a `for` over columns with a trailing `g`. One figure-level call as the last expression; facet with `col=` / `col_wrap`. Save PNG, leave the figure/grid as the last expression. Never `plt.close`. 4. If it is a **simple** Series/DataFrame `bar` / `line` / `hist` / `area` from the index or a few columns, no statistical overlay: `df.plot(...)`. Save the figure (`ax.figure.savefig(...)`), leave `ax.figure` (or the axes) visible. Never `plt.close`. 5. Else **matplotlib**. Last resort. In a notebook still save and display; do not `plt.close`. Notebook cells: save for the caller markdown **and** show the figure in the notebook. `plt.close` is for non-notebook scripts only (evaluate/audit scratch probes if they are not notebooks). Polars → pandas at the plot boundary. Missing import → `add-python-package` if installed; else name the package and return. `api get` before new symbols. Missing this skill from a caller → that caller one-line skips and still follows this tree. ## Stop conditions - Do not write a long matplotlib script for a hist, box, or bar of a Series. - Do not load `choose-python-library` for matplotlib vs seaborn vs plotly. - Do not `pixi add` / `uv add` / `env add`. - Do not install plotly on the default EDA path. - Do not `plt.close` a figure that should appear in a notebook.
Files in this package (3)
- SKILL.md 3 KB
- evals/evals.json 8 KB
- references/when.md 2 KB
Versions
The database has no other skills named plot-ml-figure.
Database snapshot: 13.11.2026 · package version 74e6d78db55f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90evident-charts
Use when creating, revising, or reviewing explanatory data charts for a blog, report, paper, slide, newsletter, or social post. Includes matplotlib, seaborn, pandas .plot, ggplot2, Plotly, Altair/Vega-Lite, D3, and PNG/SVG charts. Also use for "critique this chart", "why does… - 100matplotlib
Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for… - 100plot-styling
This skill should be used when the user asks to "plot data", "make a plot for a paper", "make a publication plot", "create a journal-quality plot", "matplotlib for a figure", "use seaborn", "use plotnine", "use ggplot in Python", "improve plot quality", "style my plot", "clean… - 100beautiful-data-viz
Shared design rules for every plot, figure, chart, dashboard or data visual (matplotlib, seaborn, ggplot2, Plotly, HTML/SVG). Greyscale first, color only to encode information, colorblind-safe, publication-ready export. Use when making, restyling or reviewing any chart or figure. - 100matplotlib
Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for… - 100matplotlib
Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for…