NCAS-CMS / NCAS-CMS/cf-plot

Support plots in continuous colourscales (w/o discrete `ncols`)

Open
#88 0 comments 0 reactions 1 assignee View on GitHub

@sadielbartholomew is already working on this.

Since Apr 3, 2025.

enhancement
Dominant language
Python
Stars
21
Forks
11
Avg merge
7h 11m
Merged PRs (30d)
1

Description

At the moment, even for inherently continuous colour scales such as 'viridis' and 'plasma', there is no way to request and view/save a plot with the full continuous scale of colours, only the plot produced with some set of N colours pulled from the ncols. This is a major deficiency in my view, since discretising the colour scales can obscure important trends via gradient representation of the visualised data.

To illustrate the difference, compare the colourbar in this (continuous) example and this (discretised) example in the matplotlib gallery.

We should support the continuous case. I will investigate the present logic to see how best to implement this.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.