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](https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_matplotlib/core.py#L1073) and [here](https://github.com/pandas-dev/pandas/blob/2428cdda3d9d11031a8efa637e9841f2aa16b490/pandas/plotting/_matplotlib/core.py#L709) 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 https://github.com/pydata/xarray/issues/4115#issuecomment-637018829,https://api.github.com/repos/pydata/xarray/issues/4115,637018829,MDEyOklzc3VlQ29tbWVudDYzNzAxODgyOQ==,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}",,628089013