home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 360230869

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/1852#issuecomment-360230869 https://api.github.com/repos/pydata/xarray/issues/1852 360230869 MDEyOklzc3VlQ29tbWVudDM2MDIzMDg2OQ== 1386642 2018-01-24T18:36:12Z 2018-01-24T18:36:19Z CONTRIBUTOR

pcolormesh expects n+1 coordinates

I agree that pcolormesh ultimately works with the mesh corners, but I am pretty sure passing coordinates of the same length also works.

you'll probably have to sort the values beforehand too

True. But we can do it automatically with xarray because it has the coordinate information.

So the question is how much sanity check xarray should do before sending the data to matplotlib, and maybe a warning of some kind would be useful.

I am not sure there there is any circumstance where it would be preferable to plot the scrambled data. Is there some the problem with just adding something like the two lines a wrote above to plot.pcolormesh?

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