-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for a coloarmap dictionary #8151
Comments
did you try creating a matplotlib colormap instance from your dictionary, then passing that? According to the docstring those are accepted as well, so this should work already (if not, that would be a bug). |
I am a little confused. From the docstring, it does not look like plot.line() takes a colormap as an input. Am I missing something? |
it does not, so that's my bad. Could you post (a part of) the dictionary you had in mind? That way, I can actually try things out without guessing (a educated guess, but a guess nonetheless). |
Its a recurring issue. I'll just give an example of what I had in mind.
OR If I am not mistaken, the way to do this currently, would be to set a color cycle using plt.cycler() which is reasonable. But, given the powerful plotting functionality of xarray, this would be a nice addition |
great, thanks. We're currently using @Illviljan (or any others who have worked on plotting a bit), any opinions? Do we have any prior art in |
So |
Is your feature request related to a problem?
When I plot multiple lines using xarray.plot.line(), I would like xarray to be able to get the colors from a dictionary and use that for the color of the lines.
Describe the solution you'd like
There are 2 functionalities that can solve this problem
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: