image
Plot an image
Call signature:
image(data, rect=None, xx=None, yy=None)
Help text:
image(data) plots an image at (0,0)+(XxY). Note that that differs by 0.5 units from matlab conventions. The image must be YxXx1 or YxXx3 and may be either uint8 or float.
image(data, rect=(x, y, w, h)) specifies location and scale.
If h is negative, the image is plotted upside down.
If w is negative, the image is flipped right to left.
Instead of rect, optional arguments xx and yy may be used to specify bin centers. Only the first and last elements of the vectors are actually used.
Download pdf