Feed on
Posts
Comments

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)

 


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS