Alphabetical list Categories
xzimage Plot an image in projected xz-plane.
Call signature:

xzimage(data, rect, proj, y=0)

Help text:

xzimage(data, (x0, z0, w, d), (xz, yz)) plots an image in the xz-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 w is negative, the image is flipped right to left.
If d is negative, the image is flipped in the z-dimension.
Optional argument y specifies y-axis intersect of the image plane.
If None is given as a second argument, the pixel size of the image is used.

Example:

import qplot as qp

import numpy as np

qp.figure('xzimage', 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.xzimage(img, [0, 0, 10, 10], [-.4, -.6])

qp.xaxis('X', np.arange(0,11,2), flip=True)

qp.yaxis('Y', np.arange(0,11,2))

qp.zaxis('Z', np.arange(0,11,2), [-.4,-.6])

qp.shrink()

QPlot Documentation — (C) Daniel Wagenaar, 2014–2023