home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 730698059

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/4596#issuecomment-730698059 https://api.github.com/repos/pydata/xarray/issues/4596 730698059 MDEyOklzc3VlQ29tbWVudDczMDY5ODA1OQ== 10194086 2020-11-19T23:18:23Z 2020-11-19T23:18:23Z MEMBER

Yes, this is due to an upstream change in matplotlib - see also #4364. mpl tries to infer the edges of the gridcell - which does not work if the data is not monotonic. In the short term we can fix this by passing shading="flat":

python ds.Tair[0].plot.pcolormesh(ax=ax, transform=ccrs.PlateCarree(), x='xc', y='yc', add_colorbar=False)

however, mpl will eventually remove shading="flat". I am not sure what the best way forward is. mpl recommends to drop a row and column of the data (which it did earlier automatically). See:

https://github.com/SciTools/cartopy/issues/1638#issuecomment-692741908

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