from brewer2mpl import qualitative, sequential, diverging, wesanderson
from brewer2mpl.brewer2mpl import _ColorMap
def display_maps(module):
for k in dir(module):
thing = getattr(module, k)
if isinstance(thing, dict) and 'max' in thing:
thing = thing['max']
if isinstance(thing, _ColorMap):
print(k)
thing.show_as_blocks()
display_maps(sequential)
Blues
BuGn
BuPu
GnBu
Greens
Greys
OrRd
Oranges
PuBu
PuBuGn
PuRd
Purples
RdPu
Reds
YlGn
YlGnBu
YlOrBr
YlOrRd
display_maps(diverging)
BrBG
PRGn
PiYG
PuOr
RdBu
RdGy
RdYlBu
RdYlGn
Spectral
display_maps(qualitative)
Accent
Dark2
Paired
Pastel1
Pastel2
Set1
Set2
Set3
display_maps(wesanderson)
Cavalcanti
Chevalier
Darjeeling1
FantasticFox1
GrandBudapest1
Margot1
Margot2
Mendl
Moonrise1
Moonrise2
Moonrise3
Moonrise4
Royal1
Zissou