DOC: Two improvements to the documentation of CPT

Open
#9,331 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
html, javascript
Domain
documentation

Research direction

Start with the CPT documentation page at docs.generic-mapping-tools.org/dev/reference/cpts.html and review how its current static figures are generated and organized. The issue proposes further reading, interactive CPT browsing, and new categories, but leaves the approach open; discuss and agree on scope before implementation. Done means the documentation reflects the agreed changes and presents CPTs in the agreed categories.

Written by the indexing model from the issue text.

Description

Here is the link to the current documentation for CPT (https://docs.generic-mapping-tools.org/dev/reference/cpts.html). I'd like to propose the following changes.

  1. Recommend that users read the following paper (or maybe there are some other better papers/materials for further reading):

Crameri, F., G.E. Shephard, and P.J. Heron (2020), The misuse of colour in science communication, Nature Communications, 11, 5444, https://doi.org/10.1038/s41467-020-19160-7

  1. Currently, the CPTs are displayed as static images. Maybe we could implement a page like cpt-city (https://phillips.shef.ac.uk/pub/cpt-city/arendal) using JS or pure HTML (I just recalled that I made a try a few years ago using JS, which works fine, but I didn't finish it and can't find it now).

  2. Currently, the CPTs are grouped in 4 separate figures by sections (e.g., gmt, cmocean), but as a user, I usually don't care about the section name. If we follow the Crameri's paper, maybe we should show the CPTs into categories like "Diverging", "Sequencial", "Multi-Sequencial" (mostly for Earth relief, maybe just call them "Earth relief specific"), and "Cyclic".

Above are just my random thoughts, so discussions and comments are welcome.

Dominant language
C
Stars
997
Forks
420
Avg merge
13h 27m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/gmt

All issues in GenericMappingTools/gmt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.