axes.Axes.matshow

matplotlib.axes.Axes.matshow

Axes.matshow(Z, **kwargs)

Plot a matrix or array as an 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.

Parameters:

Z : array_like shape (n, m)

The matrix to be displayed.

Returns:

image : AxesImage

Other Parameters:

kwargs : imshow arguments

Sets origin to ‘upper’, ‘interpolation’ to ‘nearest’ and ‘aspect’ to equal.

See also

imshow
plot an image

Examples

(Source code, png, pdf)

../../_images/matshow.png

© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.0.2/api/_as_gen/matplotlib.axes.Axes.matshow.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部