imsc
Plot two-dimensional data as an image using lookup table
Call signature:
imsc(data, rect=None, c0=None, c1=None, xx=None, yy=None, hard=False)
Help text:
imsc(data) plots the data as an image using a lookup previously set by QLUT.
imsc(data, rect) specifies a (x, y, w, h) rectangle for placement as for image.
Alternatively, imsc(data, xx, yy) specifies X and Y coordinates for each column and row of the image. (Only the first and last coordinates are used; nonlinear scaling is not supported.)
The color axis limits default to the min and max of the data.
Optional arguments c0 and c1 override those limits.
Example:

import qplot as qp

import numpy as np

qp.figure('imsc', 3, 3)

xx, yy = np.meshgrid(range(11), range(11))

zz = np.cos(xx) + np.sin(yy)

qp.luts.set("jet", 100)

qp.imsc(zz, xx=xx, yy=yy, c0=-2, c1=2)

qp.xaxis('X', [0, 5, 10], y=-0.5, lim=[-0.5, 10.5])

qp.yaxis('Y', [0, 5, 10], x=-0.5, lim=[-0.5, 10.5])

qp.cbar(width=10)

qp.caxis()