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

Determine whether data is divergent and use a RdBu colormap / center clim #206

Merged
merged 11 commits into from
Sep 16, 2019

Conversation

ahuang11
Copy link
Collaborator

@ahuang11 ahuang11 commented May 9, 2019

#205

The centering is based off all time step / all dimensions.

import hvplot.xarray
import xarray as xr

ds = xr.tutorial.open_dataset('air_temperature')
da = ds['air']
da_anom = da - da.mean()
da_anom.hvplot('lon', 'lat')

image

@ahuang11 ahuang11 changed the title Determine whether data is divergent and use a RdBu colormap Determine whether data is divergent and use a RdBu colormap / center clim May 9, 2019
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
hvplot/converter.py Outdated Show resolved Hide resolved
@jsignell
Copy link
Member

Ok I think this is reasonable now.

@jsignell
Copy link
Member

Well I guess it's not quite done. Still need some more tests around non-numeric datatypes I suppose. Or put back in the try/except.

@jsignell
Copy link
Member

@philippjfr good with you if I merge?

@philippjfr philippjfr merged commit 17d9813 into master Sep 16, 2019
@jsignell jsignell deleted the defaults_center_cmap_clim branch October 17, 2019 20:42
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

Successfully merging this pull request may close these issues.

None yet

5 participants