home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 320535308

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/1503#issuecomment-320535308 https://api.github.com/repos/pydata/xarray/issues/1503 320535308 MDEyOklzc3VlQ29tbWVudDMyMDUzNTMwOA== 10050469 2017-08-06T21:53:16Z 2017-08-06T21:54:24Z MEMBER

On 08/06/2017 11:37 PM, Sam Miller wrote:

Is the behavior that xarray is showing by design or is it a corner case that I'm getting because I'm not using xarray in the way it was originally intended?

Xarray follows the CF conventions as far as possible, and the convention states that dimension coordinates should have the same name as their dimension. See the docs for terminology: http://xarray.pydata.org/en/latest/data-structures.html#coordinates

What we could do however is to add a "x" kwarg to plot.line so that one can specify which coordinate to use for the plot, like plot.pcolormesh

i.e. it would be possible to do:

ds.variable.plot(x='r')

Instead of renaming the dimension for it to become a dimension coordinate.

Thoughts?

Cheers,

Fabien

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