home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 862760120

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/pull/5464#issuecomment-862760120 https://api.github.com/repos/pydata/xarray/issues/5464 862760120 MDEyOklzc3VlQ29tbWVudDg2Mjc2MDEyMA== 14371165 2021-06-16T22:04:34Z 2021-06-16T22:04:34Z MEMBER

Turns out ax.imshow has some support for strings in the sense that it convert it to integers. So I had to some formatting to get the ticklabels back to strings.

python a = xr.DataArray( [[0, 1, 2], [3, 4, 5]], dims=("dim_0", "dim_1"), coords=dict(dim_0=(["dim_0"], [0, 1]), dim_1=(["dim_1"], ["u", "v", "w"])), ) a.plot.imshow()

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