← ClaudeAtlas

pygmt-plottinglisted

REQUIRED for ANY geographic map task (takes precedence over generic chart/dataviz guidance for maps) — publication-quality scientific maps and figures with PyGMT (Python GMT), with mandatory ready-to-run templates for common figure types and a mandatory pre-delivery QC loop (catches colorbar/label overlap, clipped text, missing arrowheads, layout collisions). Covers the full PyGMT API — basemaps, coastlines, topography/grids (grdimage/grdcontour/grdview), CPT color scales, scatter/line/vector plots, focal mechanisms (meca), velocity fields (velo), cross-sections (project/grdtrack), multi-panel layout (subplot/inset/shift_origin) — plus six selectable visual styles (house/journal/classic/minimal/presentation/dark). Use when plotting any map, topography/relief, profile/cross-section, InSAR/displacement field, wrapped interferogram, earthquake catalog, beachball, or GPS velocity figure — with PyGMT/GMT or any Python mapping code — or when the user mentions figure styles/themes/dark mode or `import pygmt`.
rookieplayerjr/pygmt-plotting-skill · ★ 4 · Data & Documents · score 72
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