We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import numpy as np import matplotlib.pyplot as plt import xarray as xr x, y = np.meshgrid(np.arange(12), np.arange(12)) z = xr.DataArray(np.sqrt(x**2 + y**2)) z2 = xr.DataArray(np.sqrt(x**2 + y**2)+1) ds = xr.concat([z,z2], dim = 'time') ds['time'] = [0,1] f, ax = plt.subplots() ds[0].plot.contour(ax = ax, levels=[4], colors=['k']) f, ax = plt.subplots() ds[1].plot.contour(ax = ax, levels=[4], colors=['k']) ds.plot.contour(col = 'time', levels=[4], colors=['k'])
While drawing only one contour was fixed some time ago (#866), single contour plots in FacetGrid do not work for me.
xr.show_versions()
xarray: 0.14.1 pandas: 0.24.2 numpy: 1.17.3 scipy: 1.2.1 netCDF4: 1.5.1.2 pydap: installed h5netcdf: 0.7.4 h5py: 2.9.0 Nio: None zarr: 2.3.2 cftime: 1.0.3.4 nc_time_axis: 1.2.0 PseudoNetCDF: None rasterio: 1.0.5 cfgrib: 0.9.6.2 iris: None bottleneck: 1.2.1 dask: 2.6.0 distributed: 2.6.0 matplotlib: 3.0.3 cartopy: 0.16.0 seaborn: 0.9.0 numbagg: None setuptools: 41.0.1 pip: 19.3.1 conda: None pytest: 4.4.1 IPython: 7.1.1 sphinx: 2.0.1
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'll mark this as a bug. PRs welcome!
Sorry, something went wrong.
facetgrid: Ensure that colormap params are only determined once.
5d78fb2
Fixes pydata#3569
facetgrid: Ensure that colormap params are only determined once. (#3915)
2c77eb5
* facetgrid: Ensure that colormap params are only determined once. Fixes #3569 * blacken * Add test * update whats-new
Successfully merging a pull request may close this issue.
MCVE Code Sample
Output
Expected Output
Problem Description
While drawing only one contour was fixed some time ago (#866), single contour plots in FacetGrid do not work for me.
Output of
xr.show_versions()
xarray: 0.14.1
pandas: 0.24.2
numpy: 1.17.3
scipy: 1.2.1
netCDF4: 1.5.1.2
pydap: installed
h5netcdf: 0.7.4
h5py: 2.9.0
Nio: None
zarr: 2.3.2
cftime: 1.0.3.4
nc_time_axis: 1.2.0
PseudoNetCDF: None
rasterio: 1.0.5
cfgrib: 0.9.6.2
iris: None
bottleneck: 1.2.1
dask: 2.6.0
distributed: 2.6.0
matplotlib: 3.0.3
cartopy: 0.16.0
seaborn: 0.9.0
numbagg: None
setuptools: 41.0.1
pip: 19.3.1
conda: None
pytest: 4.4.1
IPython: 7.1.1
sphinx: 2.0.1
The text was updated successfully, but these errors were encountered: