Visualization interop

From VectorSpaceLab/AREX-Skill · View interactive version

Visualization interop is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Plot, render, convert channels/RGB, matrix/image data, and interoperate with NumPy, nibabel, and SimpleITK in ANTsPy.

How to use this skill

Skill file

Visualization and Interop

Use this sub-skill when a task asks for ANTsPy plotting, saved figures, headless rendering, image grids, orthographic views, movies, channel/RGB/vector handling, image-to-matrix conversion, n-dimensional image splitting/merging, or conversion to/from nibabel and SimpleITK objects.

Start Here

  1. Import the public package as import ants; the installable distribution is antspyx.
  2. For CI, servers, notebooks without display access, or scripts that save figures, set a non-interactive Matplotlib backend before importing ants; see workflows.
  3. Use API reference for verified plotting signatures, conversion signatures, optional dependency notes, and known unsupported aliases.
  4. Pick a recipe from workflows: saved plots, overlays, grids, histograms, movies, channels/RGB/vector images, matrix/image round trips, n-dimensional image lists, nibabel, or SimpleITK.
  5. Check troubleshooting for backend failures, optional import failures, overlay mismatch, channel axis confusion, and mask/matrix ordering issues.
  6. For a deterministic runtime check, run scripts/antspy_plotting_smoke.py in an environment with antspyx, numpy, and matplotlib installed.

Core Rules

Route Elsewhere

References

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.