home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 575598339

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/issues/3687#issuecomment-575598339 https://api.github.com/repos/pydata/xarray/issues/3687 575598339 MDEyOklzc3VlQ29tbWVudDU3NTU5ODMzOQ== 10194086 2020-01-17T11:58:33Z 2020-01-17T11:58:33Z MEMBER

This happens in matplotlib when you pass an RGBA array. Thus the following should cause the same problem.

python ax = plt.subplot(projection=ccrs.Robinson()) ax.imshow(ds.isel(time=[0, 1, 4, 8]).transpose('lat', 'lon', 'time').values[-1::-1, :, :], transform=ccrs.PlateCarree())

I.e. it is an matplotlib or cartopy error. However, xarray always adds an alpha channel internally, see

https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L901-L903

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