Plot the values of a 2D matrix or array as color-coded image.
The matrix will be shown the way it would be printed, with the first row at the top. Row and column numbering is zero-based.
The matrix to be displayed.
imshow
arguments
See also
imshow
More general function to plot data on a 2D regular raster.
This is just a convenience function wrapping imshow
to set useful defaults for displaying a matrix. In particular:
origin='upper'
.interpolation='nearest'
.aspect='equal'
.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.matshow.html