next up previous contents index
Next: pldj: Plot Disjoint Lines Up: Output Primitives Previous: plfp: Plot a List   Contents   Index


pli: Plot a Cell Array

Calling Sequence
...

pli(z[[, x0, y0], x1, y1][, <keylist>])

Description
Plot the image z as a cell array: an array of equal rectangular cells colored according to the 2D array z. The first dimension of z is plotted along x, the second dimension is along y. If z is of type unsigned char (Python typecode "b"), it is used '' as is''; otherwise, it is linearly scaled to fill the current palette, as with the bytscl function.

If x1 and y1 are given, they represent the coordinates of the upper right corner of the image. If x0, and y0 are given, they represent the coordinates of the lower left corner, which is at (0, 0) by default. If only the z array is given, each cell will be a 1x1 unit square, with the lower left corner of the image at (0, 0).

Keyword Arguments

The following keyword arguments can be specified with this function. legend, hide, top, cmin, cmax See ``Plot Function Keywords'' on page [*] for detailed descriptions of these keywords. (See the bytscl function description on page [*] for explanation of top, cmin, cmax.)

Example
The following example computes and draws an interesting cell array.
fma() 
unzoom() 
x = a3 (-6,6,200) 
y = transpose (x) 
r = mag(y, x) 
theta = arctan2 (y, x) 
funky = cos(r)** 2 * cos(3* theta) 
pli(funky)

11#11


next up previous contents index
Next: pldj: Plot Disjoint Lines Up: Output Primitives Previous: plfp: Plot a List   Contents   Index
Michiel Jan Laurens de Hoon 2003-04-19