home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 211380196

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
211380196 MDU6SXNzdWUyMTEzODAxOTY= 1290 guess the second coordinate when only one is passed to pcolormesh() 731499 closed 0     0 2017-03-02T12:42:37Z 2017-03-07T14:56:13Z 2017-03-07T14:56:13Z CONTRIBUTOR      

Say I have a DataArray zwith dimensions ('x', 'y'), in that order. If I call z.plot(), it will create a pcolormesh with x the vertical dimension and y the horizontal one. If I want to invert the axes, I need to call z.plot(x='x', y='y'). If I supply only one of the dimensions, i.e. z.plot(x='x'), I get the error message

python ValueError: cannot supply only one of x and y

I think that when calling the plot function on a 2d DataArray and passing only one coordinate, as in z.plot(x='x'), xarray could guess we want the unpassed coordinate to be the other one. I don't see why this would be unsafe.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1290/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 78.71ms · About: xarray-datasette