home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 360284640

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-360284640 https://api.github.com/repos/pydata/xarray/issues/1852 360284640 MDEyOklzc3VlQ29tbWVudDM2MDI4NDY0MA== 1217238 2018-01-24T21:47:22Z 2018-01-24T21:47:22Z MEMBER

One indication that something is broken here is that z.plot.imshow() and z.plot.pcolormesh() show very different figures. (imshow shows the right data, but the labels on the x-axis are wrong.)

I can see use cases for plotting scrambled data, but for those cases I would probably defer to seaborn.heatmap() which does the right thing (including labels): import seaborn z.to_pandas().pipe(seaborn.heatmap, cmap='viridis')

Rather than automatically sorting data, we could start raising an error if labels are unsorted. The error message could suggest either sorting the data with the sortby() method or using seaborn.heatmap.

{
    "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 0.967ms · About: xarray-datasette