Transform not working with xlim / ylim and col_wrap #8563
Replies: 2 comments 1 reply
-
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
@sarahclaude Thanks for providing the MCVE. I've converted this to a discussion under Your source data is in longitude/latitude but your rendered images are as requested in lambert conformal projection. Setting xlim and ylim would technically need the limits provided in lambert conformal coordinates. It might make more sense to slice the source data to the wanted ranges before plotting. At least I do not know another solution immediately. |
Beta Was this translation helpful? Give feedback.
-
What happened?
I get back the wrong projections when passing transform with
col_wrap = 2
while plotting a facetgrid (first picture).I also get empty subplots when using
transform = ccrs.PlateCarrree
with a defined xlim and ylim (second picture).What did you expect to happen?
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
xarray: 2023.10.1
pandas: 2.0.2
numpy: 1.24.3
scipy: 1.10.1
netCDF4: 1.6.4
pydap: None
h5netcdf: None
h5py: 3.8.0
Nio: None
zarr: 2.15.0
cftime: 1.6.2
nc_time_axis: None
PseudoNetCDF: None
iris: None
bottleneck: 1.3.7
dask: 2023.6.0
distributed: 2023.6.0
matplotlib: 3.7.1
cartopy: 0.21.1
seaborn: 0.12.2
numbagg: None
fsspec: 2023.6.0
cupy: None
pint: 0.22
sparse: None
flox: None
numpy_groupies: None
setuptools: 67.7.2
pip: 23.1.2
conda: None
pytest: 7.3.2
mypy: None
IPython: 8.14.0
sphinx: 7.0.1
Beta Was this translation helpful? Give feedback.
All reactions