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

Feature: colourbar, symmetric about zero #25

Open
rpnaut opened this issue Jan 26, 2021 · 1 comment
Open

Feature: colourbar, symmetric about zero #25

rpnaut opened this issue Jan 26, 2021 · 1 comment

Comments

@rpnaut
Copy link

rpnaut commented Jan 26, 2021

No code needed to be shown.

Problem description

Using the GUI of psyplot is somehow frustating for quantities you want to visualize with a range symmetric about zero. There is no colourbar with white at the center and useful colors at the left and right end.

Expected

Extend the colourbars by those of ncview. That would be really advantageous.

@Chilipp
Copy link
Member

Chilipp commented Jan 26, 2021

hey @rpnaut. Are you using the psyplot-gui? Then this is actually already possible

roundedsym.mp4

or via script, e.g.

sp.update(bounds="roundedsym", cmap="RdBu")

there is also the "red_white_blue" cmap, if you like.

You can should add your own colormaps using the 'colors.cmaps' rcParam, e.g. via

cat >> ~/.config/psyplot/psyplotrc.yml << EOF

colors.cmaps: 
  rgb: ['r', 'g', 'b']

EOF

and then `sp.update(cmap="rgb")

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

2 participants