next up previous contents index
Next: pli: Plot a Cell Up: Output Primitives Previous: plfc: Plot filled contours   Contents   Index


plfp: Plot a List of Filled Polygons

Calling Sequence
...

plfp(z, y, x, n[, <keylist>])

Description
Plot a list of filled polygons y versus x, with colors z. The n array is a 1D list of lengths (number of corners) of the polygons; the 1D colors array z has the same length as n. The x and y arrays have length equal to the sum of all dimensions of n.

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.

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
This example gives a sort of ``stained glass window'' effect;.
z = array([190,100, 130,100,50,190,160,100,50,100,130], 'b') 
y = array ([1.0, 2.0, 7.0, 8.0, 1.0, 1.0, 2.0, 0.0, 1.0, 1.0, 
1.0, 1.0, 2.0, 1.0, 2.0, 2.0, 2.0, 1.0, 8.0, 7.0, 2.0, 2.0, 
7.0, 7.0, 7.0, 8.0, 8.0, 7.0, 7.0, 8.0, 7.0, 8.0, 8.0, 8.0, 
8.0, 9.0]) 
x = array ([0.0, 1.0, 1.0, 0.0, 0.0, 1.5, 1.0, 1.5, 3.0, 0.0, 
1.5, 3.0, 2.0, 1.5, 2.0, 1.0, 2.0, 3.0, 3.0, 2.0, 1.0, 2.0, 
2.0, 1.0, 2.0, 3.0, 1.5, 1.0, 2.0, 1.5, 1.0, 1.5, 0.0, 0.0, 
3.0, 1.5]) 
n = array ([4, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3]) 
plfp (z, y, x, n)

10#10


next up previous contents index
Next: pli: Plot a Cell Up: Output Primitives Previous: plfc: Plot filled contours   Contents   Index
Michiel Jan Laurens de Hoon 2003-04-19