Skip to content
Back to skills

Plotting Diagnostics

ASecurity

"Diagnose optional umap.plot static, datashaded, connectivity,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolsdebuggingapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill plotting-diagnostics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plotting Diagnostics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plotting Diagnostics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-plotting-diagnostics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-plotting-diagnostics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plotting-diagnostics
description: "Diagnose optional umap.plot static, datashaded, connectivity,
  diagnostic, hover/search, and nearest-neighbour workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Plotting Diagnostics

Use this sub-skill when you already have a fitted UMAP-family mapper and need to inspect or recover plotting workflows in `umap.plot`.

## Covers

- `points`, `connectivity`, `diagnostic`, `interactive`, `nearest_neighbour_distribution`, and `show`.
- Optional `umap.plot` import failures, dependency checks, and install advice.
- Static matplotlib, datashaded large-data, connectivity graph, Bokeh interactive, hover/search, and nearest-neighbour histogram paths.

## Route Elsewhere

- Fit, transform, update, inverse-transform, nearest-neighbour graph preparation, or base mapper configuration: [core embedding](../core-embedding/SKILL.md).
- Supervised label training, target metrics, densMAP semantics, or density interpretation: [supervised density](../supervised-density/SKILL.md).
- Parametric UMAP model/loss-history semantics: [parametric UMAP](../parametric-umap/SKILL.md). Plotting mechanics for an already fitted 2D mapper can route back here.

## First Checks

1. Confirm the mapper is fitted and exposes `embedding_` or `embedding`.
2. Confirm the plotted embedding is 2D.
3. Confirm `labels`, `values`, `subset_points`, and `hover_data` align to plotted rows.
4. Treat plot extras as optional. Base UMAP does not require `umap.plot`.
5. Run [`scripts/check_plotting_stack.py`](scripts/check_plotting_stack.py) before debugging optional plotting failures.

## Recovery Path

1. If `import umap.plot` fails, install `umap-learn[plot]` or the conda package set in [plotting reference](references/plotting-reference.md).
2. If plot extras are unavailable, fall back to `mapper.embedding_` and plain matplotlib or export the embedding for plotting elsewhere.
3. For static and datashaded plots, read [plotting reference](references/plotting-reference.md) for API contracts and row-alignment rules.
4. For errors, display confusion, hover/search mismatches, or performance issues, read [troubleshooting](references/troubleshooting.md).

## Display Rules

- Use `umap.plot.output_notebook()` before interactive notebook display.
- Use `umap.plot.output_file("plot.html")` before interactive file output.
- Use `umap.plot.show(plot_to_show)` on the object returned by `interactive` or on a matplotlib axis when you want the package display helper.

Files in this skill

  • SKILL.md2.5 KB
  • references/plotting-reference.md6.2 KB
  • references/troubleshooting.md5 KB
  • scripts/check_plotting_stack.py7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.