home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 735419937

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/3002#issuecomment-735419937 https://api.github.com/repos/pydata/xarray/issues/3002 735419937 MDEyOklzc3VlQ29tbWVudDczNTQxOTkzNw== 3958036 2020-11-29T16:28:32Z 2020-11-29T16:28:32Z CONTRIBUTOR

I had the same problem. I found that da.plot.pcolormesh('lon', 'lat', shading='gouraud', infer_intervals=False) does work. Would be nice if shading='gouraud' worked by default though.

I guess the problem is that 'gouraud' needs the coordinate positions at the grid points, and I assume infer_intervals=True is creating coordinate values at the grid-cell corners (so an n x m DataArray is plotted using coordinates with lengh (n+1) and (m+1). I haven't looked into what infer_intervals actually does though. Would it be safe to just turn it off if shading='gouraud' is used?

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