home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 637064512

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/4115#issuecomment-637064512 https://api.github.com/repos/pydata/xarray/issues/4115 637064512 MDEyOklzc3VlQ29tbWVudDYzNzA2NDUxMg== 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
}
  628089013
Powered by Datasette · Queries took 0.617ms · About: xarray-datasette