home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 628089013 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • dcherian 1
  • martintb 1

author_association 2

  • MEMBER 1
  • NONE 1

issue 1

  • DataArray.plot.line color kwarg · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
637064512 https://github.com/pydata/xarray/issues/4115#issuecomment-637064512 https://api.github.com/repos/pydata/xarray/issues/4115 MDEyOklzc3VlQ29tbWVudDYzNzA2NDUxMg== martintb 6588826 2020-06-01T19:43:47Z 2020-06-01T19:43:47Z NONE

That's interesting and I really though that syntax worked for plain matplotlib.

Looking here and here it appears that they are manually mapping colors to dataframe columns. I can emulate this to some extent as:

python lines = da.plot.line(x='x') colors = cmapper(da.y.values) [l.set_color(c) for l,c in zip(lines,colors)]

I admit that I haven't read much on cyclers but I don't think they'll work well in my case as I mention above. If my first call to plot has np.arange(0,100,10.0) and the second np.arange(0,100,20.0), I still need the colors to correctly match up. Please correct me if there's a better what to do this!

Either way, this appears to be more of a feature request than a bug. I'll close this unless it warrants more discussion.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray.plot.line color kwarg 628089013
637018829 https://github.com/pydata/xarray/issues/4115#issuecomment-637018829 https://api.github.com/repos/pydata/xarray/issues/4115 MDEyOklzc3VlQ29tbWVudDYzNzAxODgyOQ== dcherian 2448579 2020-06-01T18:04:42Z 2020-06-01T18:04:42Z MEMBER

plt.plot(data, color=cmapper(da.y.values)) fails with the same error. You'll have to figure out what pandas is doing here or alternatively what the matplotlib recommended way of doing this is (setting a cycler?)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray.plot.line color kwarg 628089013

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 13.469ms · About: xarray-datasette