home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 367397397

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/1926#issuecomment-367397397 https://api.github.com/repos/pydata/xarray/issues/1926 367397397 MDEyOklzc3VlQ29tbWVudDM2NzM5NzM5Nw== 2448579 2018-02-21T17:05:37Z 2018-02-21T17:06:13Z MEMBER

either by (i) specifying the name of the variable to the axis you want to plot it onto, or (ii) by specifying the name of the coordinate you want to use for the axis. Since (ii) is the default and only option for 1D and 2D plots until now, I just wondered if (i) is very necessary.

It does feel a little strange that if you had a DataArray with non-dimension coordinates you could make a plot without including any of the DataArray values

Good points. I'll change it so that only one of x and y can be specified.

My main thought is that this API would feel much more natural on a Dataset object, alongside a .plot.scatter() method.

It's very useful in oceanography (and meteorology) where we want to make plots of physical quantities like temperature against depth; it is much more natural to see depth on the y-axis than the x-axis. This is the original usecase @rabernat mention in #575.

The Dataset API is a more involved undertaking that I'm not confident of executing at this point.

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