Plotting diagnostics

From lza6/Armor-piercing-system-prompts · View interactive version

Plotting diagnostics is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Diagnose optional umap.plot static, datashaded, connectivity, diagnostic, hover/search, and nearest-neighbour workflows.

How to use this skill

Skill file

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

Route Elsewhere

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 CODE0 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.
  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 for API contracts and row-alignment rules.
  4. For errors, display confusion, hover/search mismatches, or performance issues, read troubleshooting.

Display Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.