riley2 = matplotlib.colors.LinearSegmentedColormap.from_list('riley2',
[INDIGO,VIOLET,MAUVE,MAGENTA,RUST,OCHRE])
riley3 = matplotlib.colors.LinearSegmentedColormap.from_list('riley3',
[OCHRE,CHARTREUSE,MOSS,VIRIDIAN,TURQUOISE,AZURE])
# Smoothed out mauve, violet, rust, ochre, moss, turquoise, azure, in a loop
hues = ['#8c62cc', '#9560c8', '#9e62c3', '#a765be', '#b068b6', '#bb6caa', '#c66f98',
'#d27384', '#dd7670', '#e67c5c', '#ea8348', '#ec8b34', '#ec9421', '#e99c13',
'#dea212', '#c9a620', '#b0a934', '#96ab4a', '#7cae60', '#62b076', '#48b38c',
'#2eb5a2', '#1ab7b6', '#12b6c5', '#1cb2ce', '#2dadd4', '#41a7d8', '#529fdb',
'#6194db', '#6d86d8', '#7977d4', '#836ad0']
riley = matplotlib.colors.LinearSegmentedColormap.from_list('riley',hues)
# Make new maps behave like native Matplotlib maps
plt.register_cmap(name='riley2',cmap=riley2)
plt.register_cmap(name='riley3',cmap=riley3)
plt.register_cmap(name='riley' ,cmap=riley )
# Show as figure
figure(figsize=(5,1),dpi=300)
subplot(311)
imshow([linspace(0,1,256)],cmap='riley2',aspect='auto')
axis('off'); tight_layout()
subplot(312)
imshow([linspace(0,1,256)],cmap='riley3',aspect='auto')
axis('off'); tight_layout()
subplot(313)
imshow([linspace(0,1,256)],cmap='riley',aspect='auto')
axis('off'); tight_layout()
subplots_adjust(hspace=0.3)
savefig('moremaps.png')
</pre></div>