The boundary becomes clear with interpolation ='nearest'. You can change the direction of the vertical axis with origin ='lower'.
#coding:utf-8
from pylab import *
import numpy
matrixW = numpy.zeros( (6, 11) )
#Enter a value in matrixW as appropriate
#Visualization
#figure(1)
im = imshow(matrixW, interpolation='nearest') # origin='lower'
title('$W_j$')
colorbar(im) #Color bar showing the correspondence between colors and values
grid(True)
gray() #Blank, gray(), hot()The color changes depending on
show()
Recommended Posts