zyimage(data, rect, proj, x=0)
zyimage(data, (z0, y0, d, h), (xz, yz)) plots an image in the zy-plane projected to the paper plane by x' = x + xz*z, y' = y + yz*z.
The image must be YxXxC, where C=1 for grayscale, C=2 for grayscale+alpha, C=3 for rgb, C=4 for rgb+alpha. The image may be either uint8 or float.
If d is negative, the image is flipped in the z-dimension.
If h is negative, the image is flipped vertically.
Optional argument x specifies x-axis intersect of the image plane.
If None is given as a second argument, the pixel size of the image is used.
import qplot as qp
import numpy as np
qp.figure('zyimage', 3, 3)
xx = np.repeat(np.reshape(np.arange(10), (1,10,1)), 10, 0)
yy = np.transpose(xx, (1,0,2))
img = np.concatenate((xx/10,yy/10,.5+0*xx), 2)
qp.zyimage(img, [0, 0, 10, 10], [-.4, -.6])
qp.xaxis('X', np.arange(0,11,2), flip=False)
qp.yaxis('Y', np.arange(0,11,2), flip=True)
qp.zaxis('Z', np.arange(0,11,2), [-.4,-.6], below=True)
qp.shrink()