Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an argument `colors` to `plot_series` to allow the user to pass a list of colors. Also adds a small util function to check that the length is correct, and use `from matplotlib.colors import is_color_like` to check that they are all valid colors. If either condition is not met, then it emits a warning and defaults back to the current behavior, which is using `sns.color_palette("colorblind", n_colors=n_series)`.
- Loading branch information
1 parent
2129671
commit 9e093f7
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters