Last active
June 16, 2020 23:47
-
-
Save robdmc/45cc1644d15c70aedf7b432d7ade825d to your computer and use it in GitHub Desktop.
holoviews_color_cycle_color_names
This file contains hidden or 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
# Example of a plot | |
c = hv.Curve((x, y)).options(color=hv.Cycle('RdBu')) | |
# Show valid color cycles | |
def format_list(l): | |
print(' '.join(sorted([k for k in l if not k.endswith('_r')]))) | |
format_list(hv.Cycle.default_cycles.keys()) | |
""" | |
Accent | |
BrBG | |
BuGn | |
BuPu | |
Category10 | |
Category20 | |
Category20b | |
Category20c | |
Colorblind | |
Dark2 | |
GnBu | |
OrRd | |
PRGn | |
Paired | |
Pastel1 | |
Pastel2 | |
PiYG | |
PuBu | |
PuBuGn | |
PuOr | |
PuRd | |
RdBu | |
RdGy | |
RdPu | |
RdYlBu | |
RdYlGn | |
Set1 | |
Set2 | |
Set3 | |
Spectral | |
YlGn | |
YlGnBu | |
YlOrBr | |
YlOrRd | |
default_colors | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment