pygmt-plottinglisted
Install: claude install-skill rookieplayerjr/pygmt-plotting-skill
# PyGMT Plotting
PyGMT wraps the Generic Mapping Tools. Every method parameter accepts both a Python
full name (`projection`) and the GMT single-letter alias (`J`) — this skill uses full
names. Grid-processing functions return `xarray.DataArray` when `outgrid=None`, so
results chain directly into plotting functions.
## Load discipline (don't burn tokens on unused docs)
The DEFAULT path costs only this file + one template copy: route via the table below →
`cp` the script → edit CONFIG → render → QC. Do NOT preload the companion docs "for
context" — each opens only on its trigger, and at most once per session:
| Doc | Open ONLY when |
|---|---|
| [GOTCHAS.md](GOTCHAS.md) | a PyGMT call errors or the rendered figure shows an artifact (symptom-keyed — grep the symptom, read that section only) |
| [REFERENCE.md](REFERENCE.md) | you need an API signature the template doesn't demonstrate, or publication-craft guidance (layer order, colormap choice, hillshade, export — its final chapters) |
| [GALLERY.md](GALLERY.md) | no scripts/ template matches (second-tier routing below) — read the ONE matching snippet |
| [COMMUNITY.md](COMMUNITY.md) | GMT-China community examples, Chinese/CJK labels, China datasets, transparency/escape syntax |
## Required figure format (house style)
All scientific figures MUST follow these format rules:
- **Frame**: `MAP_FRAME_TYPE='plain'`, `MAP_FRAME_PEN='1p,black'`. Never draw frame twice (no basemap + plot both setting frame).
- **Panel labels**: UP