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 https://github.com/pydata/xarray/issues/3687#issuecomment-574085911,https://api.github.com/repos/pydata/xarray/issues/3687,574085911,MDEyOklzc3VlQ29tbWVudDU3NDA4NTkxMQ==,29065166,2020-01-14T09:34:51Z,2020-01-14T09:34:51Z,NONE,"Thanks, I'll give it a try","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548483156 https://github.com/pydata/xarray/issues/3687#issuecomment-573806802,https://api.github.com/repos/pydata/xarray/issues/3687,573806802,MDEyOklzc3VlQ29tbWVudDU3MzgwNjgwMg==,2448579,2020-01-13T18:35:14Z,2020-01-13T18:35:14Z,MEMBER,"Thanks, I'm marking this as a bug. If you have the time, it would be nice if you could look into this and send in a PR. We do some RGB stuff here: https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L632-L642 and `imshow` is here: https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L843-L915","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548483156 https://github.com/pydata/xarray/issues/3687#issuecomment-573789398,https://api.github.com/repos/pydata/xarray/issues/3687,573789398,MDEyOklzc3VlQ29tbWVudDU3Mzc4OTM5OA==,29065166,2020-01-13T17:56:33Z,2020-01-13T18:32:20Z,NONE,"> Does this work if you use `matplotlib` directly? i.e. `plt.plot(ds.isel(time=[0, 4, 8]).values, ...)` @dcherian Thanks, yes, this works as expected: ``` ax = plt.subplot(projection=ccrs.Robinson()) ax.imshow(ds.isel(time=[0, 4, 8]).transpose('lat', 'lon', 'time').values[-1::-1, :, :], transform=ccrs.PlateCarree()) ``` [![rgb map][1]][1] [1]: https://i.stack.imgur.com/iXuGA.png","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548483156 https://github.com/pydata/xarray/issues/3687#issuecomment-573784386,https://api.github.com/repos/pydata/xarray/issues/3687,573784386,MDEyOklzc3VlQ29tbWVudDU3Mzc4NDM4Ng==,2448579,2020-01-13T17:44:35Z,2020-01-13T17:44:35Z,MEMBER,"Does this work if you use `matplotlib` directly? i.e. `plt.plot(ds.isel(time=[0, 4, 8]).values, ...)`","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548483156