-
Notifications
You must be signed in to change notification settings - Fork 8
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
Passing matplotlib arguments to plot.timeseries() #463
Comments
I suppose we could forward the formatting to pandas https://pandas.pydata.org/pandas-docs/stable/user_guide/visualization.html#general-plot-style-arguments |
Can you alter individual line styles and colors in this way? Alternatively, I still have a dream of each model has it's own color attribute (actually it already has but it is just not used). See also top of the backlog list: https://github.com/orgs/DHI/projects/32 this does not include the linestyle though... |
@FrejaTerpPetersen would you like to give this a try. You can open a PR and we can help you :-) I would suggest this API:
as it is consistent with the pandas API. You would need to add the new argument to
I guess a main design decision here is to decide on the allowed length of the style-list (should it be number-of-models, numer-of-models-plus-obs, or any of the two)... But that we can discuss in the PR. |
I'll try :) |
I would like to be able to choose colors and linestyles of the timeseries plot in modelskil. I use the following code:
cc2["Drogden"] is a modelskill comparer.
Where I essentially would like to do something along the lines of:
(cc2["Drogden"].sel(start="10-05-1997",end="10-17-1997")).plot.timeseries(ax=ax, col=pal)
where pal is a list holding the matplotlib color codes. Similarly for linestyles.
The text was updated successfully, but these errors were encountered: