define color range for matshow in matplotlib
July 6th, 2011 by Lawrence David
to define the color range used by matshow, use the vmin and vmax arguments:
import pylab as pl
fig, ax = pl.subplots(1)
im1 = ax.matshow(X,vmin=0,vmax=1)

July 6th, 2011 by Lawrence David
to define the color range used by matshow, use the vmin and vmax arguments:
import pylab as pl
fig, ax = pl.subplots(1)
im1 = ax.matshow(X,vmin=0,vmax=1)