Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ability topping NaN nodes/pixels in grdview with the NaN color

Aperta
#8,301 11 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@PaulWessel ci sta già lavorando.

Dal 17/1/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

add-changelog documentation feature request

See the forum post for background.

Apparently, grdview can only paint nodes with the NaN colour for -Qs (surface) and when the 3D vantage point -paz/el is not used. This seems unnecessarily restrictive for no good reason and probably hails back to the GMT4 days. My proposal to improve this involves a new modifier to -Q. New syntax (and improved layout for all):

-Qc|i|m[x|y][color]|s[m][+m][+n]

Select among the following directives c i m or s:

  • Specify c. Same as -Qi but will make pixels with z = NaN transparent, using the colormasking
    feature in PostScript Level 3 (the PS device must support PS Level 3).
  • Specify i for image plot, and optionally append the effective dots-per-unit resolution for the rasterization [Default is GMT_GRAPHICS_DPU].
  • Specify m for mesh plot [Default], and optionally append color for a different mesh paint [white].
  • Specify mx or my for waterfall plots (row or column profiles). Optionally, append color as for plain m.
  • Specify s for surface plot coloured by the CPT, and optionally append m to have mesh lines drawn on top of surface (use -Wmpen to set specific mesh pen).

Note: If the CPT is categorical then only -Qm is available (but see -T).

Optional modifiers:

  • +m - Force a monochrome image. Colors are then converted to shades of gray using the (monochrome television) YIQ transformation
  • +n - Force colorisation of NaN nodes or pixels via the NaN CPT or default colour. PROPOSED.

One question is if we leave the NaN colour default for -Qs or if that also needs +n? Probably for backwards compatible reasons we should leave it?

Lingua principale
C
Stelle
984
Fork
413
Merge medio
22h 10m
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GenericMappingTools/gmt

Tutte le issue di GenericMappingTools/gmt

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.