Skip to content

Instantly share code, notes, and snippets.

@robdmc
Last active June 16, 2020 23:47
Show Gist options
  • Save robdmc/45cc1644d15c70aedf7b432d7ade825d to your computer and use it in GitHub Desktop.
Save robdmc/45cc1644d15c70aedf7b432d7ade825d to your computer and use it in GitHub Desktop.
holoviews_color_cycle_color_names
# 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