home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 476769164

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/1203#issuecomment-476769164 https://api.github.com/repos/pydata/xarray/issues/1203 476769164 MDEyOklzc3VlQ29tbWVudDQ3Njc2OTE2NA== 33062222 2019-03-26T17:46:57Z 2019-03-28T12:46:14Z NONE

@vnoel I'm trying to plot coastline using facet. I tried to give ax.coastline() as a subplot_kws argument but that didn't work: ``` # ds_v_test is my Dataset containing V as variable

p = ds_v_test.sel(time=slice('2012-12-01', '2012-12-02 18:00'),\ lat= slice(-90,0)).V.squeeze().plot.pcolormesh(figsize=(16, 12), col='time', col_wrap=2, levels=16 ,\ cbar_kwargs={'label':'meridional v (m/s)'}, subplot_kws={'projection':ccrs.PlateCarree(),\ 'ax':ax.coastlines()}) ``` It gives me

AttributeError: Unknown property ax

At the moment, I can get around it by using this approach:

for ax in p.axes.flat: ax.coastlines()

INSTALLED VERSIONS

commit: None python: 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 4.15.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.6.2

xarray: 0.12.0 pandas: 0.24.2 numpy: 1.16.2 scipy: 1.2.1 netCDF4: 1.4.2 pydap: None h5netcdf: None h5py: None Nio: 1.5.5 zarr: None cftime: 1.0.3.4 nc_time_axis: None PseudonetCDF: None rasterio: None cfgrib: 0.9.6.1.post1 iris: None bottleneck: None dask: None distributed: None matplotlib: 3.0.3 cartopy: 0.17.0 seaborn: 0.9.0 setuptools: 40.8.0 pip: 19.0.3 conda: None pytest: None IPython: 7.3.0 sphinx: None

​

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  200376941
Powered by Datasette · Queries took 0.584ms · About: xarray-datasette