Skip to content

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

Merged
philippjfr merged 11 commits intomasterfrom
defaults_center_cmap_clim
Sep 16, 2019
Merged

Determine whether data is divergent and use a RdBu colormap / center clim#206
philippjfr merged 11 commits intomasterfrom
defaults_center_cmap_clim

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
@philippjfr philippjfr force-pushed the defaults_center_cmap_clim branch from bf11d82 to 74878fd Compare September 12, 2019 09:59
@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.

5 participants