Examples of Default Palettes

The colorspace package contains a set of default palettes which can be accessed via palette name.

Available Palettes

from colorspace import hcl_palettes
print hcl_palettes()
## HCL palettes
## 
## Type:  Diverging
## Names: Blue-Red, Blue-Red 2, Blue-Red 3, Red-Green
##        Purple-Green, Purple-Brown, Blue-Yellow 2
##        Blue-Yellow 3, Green-Brown, Green-Orange, Cyan-Magenta
##        Tropic
## 
## Type:  Qualitative
## Names: Pastel 1, Dark 2, Dark 3, Set 2, Set 3, Warm, Cold
##        Harmonic, Dynamic
## 
## Type:  Sequential
## Names: Grays, Light Grays, Blues 2, Blues 3, Purples 2
##        Purples 3, Reds 2, Reds 3, Greens 2, Greens 3
##        Purple-Blue, Red-Purple, Red-Blue, Purple-Orange
##        Blue-Yellow, Green-Yellow, Red-Yellow, Heat, Heat 2
hcl_palettes(plot = True)

A subset of the types:

from colorspace import hcl_palettes
print hcl_palettes(type_ = ["Diverging", "Sequential (single-hue)"])
## HCL palettes
## 
## Type:  Diverging
## Names: Blue-Red, Blue-Red 2, Blue-Red 3, Red-Green
##        Purple-Green, Purple-Brown, Blue-Yellow 2
##        Blue-Yellow 3, Green-Brown, Green-Orange, Cyan-Magenta
##        Tropic
hcl_palettes(type_ = ["Diverging", "Sequential (single-hue)"], plot = True)

Or only qualitative HCL palettes but with more colors:

from colorspace import hcl_palettes
print hcl_palettes(type_ = "Qualitative")
## HCL palettes
## 
## Type:  Qualitative
## Names: Pastel 1, Dark 2, Dark 3, Set 2, Set 3, Warm, Cold
##        Harmonic, Dynamic
hcl_palettes(n = 30, type_ = "Qualitative", plot = True)

\u2026 or only one very specific named Heat 2

from colorspace import hcl_palettes
print hcl_palettes(name = "Heat 2")
## HCL palettes
## 
## Type:  Sequential
## Names: Heat 2
hcl_palettes(n = 8, name = "Heat 2", plot = True)