Alphabetical list Categories
gimage Place an image with data and paper coordinates
Call signature:

gimage(img, drect=None, prect=None)

Help text:

gimage(img, drect, prect) places an image on a location in the graph specified by both data coordinates and image coordinates.
For example: gimage(img, [5, 5, 0, 0], [0, 0, 36, 72]) creates an image of 0.5x1" at data location (5,5). gimage(img, [5, np.nan, 0, 5], [0, 36, 72, 0]) creates an image 1" wide, 5 data units high, at x=5, 1" below the top of the graph.
Etc.

Example:

import pyqplot as qp

import numpy as np

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

xx = np.tile(np.arange(10), (10,1))

yy = np.transpose(xx)

r = xx/10

g = yy/10

b = .5+0*xx

img = np.dstack((r,g,b))

qp.gimage(img, [np.nan, np.nan, 0, 0], np.array([.5, .5, 2, 2])*72)

QPlot Documentation — (C) Daniel Wagenaar, 2019