Skip to content

Facetgrid: colors beyond range (extend) not saturated #2932

Closed
@lvankampenhout

Description

@lvankampenhout

Code Sample, a copy-pastable example if possible

Screen Shot 2019-04-30 at 11 59 30

Minimal example here:
https://github.com/lvankampenhout/bug-reports/blob/master/Facetgrid_cmap_extend.ipynb

Problem description

The extreme colors of neither the pcolormesh or colorbar (using extend='both') are not saturated as they should when faceting.

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.8 |Anaconda custom (x86_64)| (default, Dec 29 2018, 19:04:46) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: C LANG: None LOCALE: None.None libhdf5: 1.10.1 libnetcdf: 4.4.1.1

xarray: 0.12.1
pandas: 0.23.4
numpy: 1.14.2
scipy: 0.18.1
netCDF4: 1.3.1
pydap: None
h5netcdf: None
h5py: 2.7.1
Nio: None
zarr: None
cftime: 1.0.0b1
nc_time_axis: None
PseudonetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.2.0
dask: 0.13.0
distributed: None
matplotlib: 3.0.2
cartopy: 0.16.0
seaborn: 0.7.1
setuptools: 38.5.1
pip: 9.0.1
conda: 4.6.14
pytest: 3.0.5
IPython: 5.1.0
sphinx: 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions