Skip to content

Instantly share code, notes, and snippets.

View edwardando's full-sized avatar

Edward Andò edwardando

  • EPFL
  • Lausanne, Switzerland
View GitHub Profile
@jgomezdans
jgomezdans / random.py
Created May 15, 2010 23:24
Random colormap for matplotli
import matplotlib,numpy
import pylab
# A random colormap for matplotlib
cmap = matplotlib.colors.ListedColormap ( numpy.random.rand ( 256,3))
pylab.imshow ( Z, cmap = cmap)
pylab.show()