home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 335123398

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
335123398 MDU6SXNzdWUzMzUxMjMzOTg= 2248 unnamed args in faceted line plots 6164157 closed 0     0 2018-06-23T19:02:17Z 2018-07-04T17:06:55Z 2018-07-04T17:06:54Z CONTRIBUTOR      

Code Sample, a copy-pastable example if possible

Unnamed arguments that are passed to line plots are directly passed to plot. ```python import xarray as xr import numpy as np

d3 = xr.DataArray(np.random.randn(10, 6, 3), dims=['x', 'y', 'z'], coords=[range(10), range(6), ['foo', 'bar', 'foobar']]) d2 = d3[..., 0].squeeze(drop=True)

This will make triangle markers and dashed lines:

d2.plot.line('^--',x='x') We [recently implemented ](https://github.com/pydata/xarray/pull/2107) faceted line plots:python d3.plot(col='z', hue='x') #should work from commit bc52f8a onwards. ```

However, current implementation does not allow for passing of unnamed arguments: python d3.plot('^--', col='z', hue='x') #gives error d3.plot.line('^--', col='z', hue='x') #gives different error I'd be happy to fix this (it's probably an easy fix, I didn't check) but I'm not sure what the correct user interface should be. Should DataArray.plot with hue as a keyword behave identically to DataArray.plot.line?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2248/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 0.563ms · About: xarray-datasette