Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic extension of colorbar #1783

Closed
natgeo-wong opened this issue Mar 23, 2022 · 3 comments
Closed

Automatic extension of colorbar #1783

natgeo-wong opened this issue Mar 23, 2022 · 3 comments
Assignees

Comments

@natgeo-wong
Copy link

Hi, as per advice a few days ago, I would like to open this issue for colorbar extensions to automatically extend the colormap for discrete colormaps.

Currently, the :auto: option for extending the colorbar results in the following:
Screen Shot 2022-03-21 at 5 13 02 pm

But I would like something like this instead:
01c-flsm_BRN

Where the colormap is automatically extended to fit.

@briochemc
Copy link
Contributor

Just to be clear for the record here, the current issue is that in the discrete case, the :auto option uses the same color for the extension and for the last level inside the color range.

For instance, the issue in the 1st image above is that the color between +4 and +5 is the same as the color above +5.

Instead it would be better to stretch the colormap (by one or two entries, depending on whether one or both extensions are requested) and then ensure that the extensions are colored with the next/previous color, as in the second image.

@jkrumbiegel jkrumbiegel self-assigned this Jul 5, 2022
@jkrumbiegel
Copy link
Collaborator

Should be fixed by #2183

@jkrumbiegel
Copy link
Collaborator

An example from the docs

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants