Matplotlib.axes.Axes.matshow() in Python
The Axes.matshow() function in axes module of matplotlib library is also used to plot the values of a 2D matrix or array as color-coded image.Syntax: Axes.matshow(self, Z, **kwargs) Parameters: This method accept the following parameters that are described below: z: This parameter contains the matrix which is to be displayed. …