Display alphabetically all available colormaps in matplotlib (that I'm aware of) on George. First the original
from pyparty import splot, showim
from pyparty.data import gwu
%pylab inline
IMAGE = gwu()
Populating the interactive namespace from numpy and matplotlib
And now the color maps
from skimage.color import rgb2gray
maps = sorted(m for m in plt.cm.datad if not m.endswith("_r"))
nmaps = len(maps)
if IMAGE.ndim == 3:
IMAGE = rgb2gray(IMAGE)
AXES = splot(36, 2, figsize=(20,(3*nmaps) ) )
for i in range(0,nmaps,2):
mp = maps[i]
showim(IMAGE, AXES[i], mp, title = mp)
showim(IMAGE, AXES[i+1], mp+'_r', title = '%s reversed' % mp)