1PLGRADIENT(3plplot) PLplot API PLGRADIENT(3plplot)
2
3
4
6 plgradient - Draw linear gradient inside polygon
7
9 plgradient(n, x, y, angle)
10
12 Draw a linear gradient using cmap1 inside the polygon defined by the n
13 points (x[i], y[i]). Interpretation of the polygon is the same as for
14 plfill(3plplot). The polygon coordinates and the gradient angle are
15 all expressed in world coordinates. The angle from the x axis for both
16 the rotated coordinate system and the gradient vector is specified by
17 angle. The magnitude of the gradient vector is the difference between
18 the maximum and minimum values of x for the vertices in the rotated
19 coordinate system. The origin of the gradient vector can be inter‐
20 preted as being anywhere on the line corresponding to the minimum x
21 value for the vertices in the rotated coordinate system. The distance
22 along the gradient vector is linearly transformed to the independent
23 variable of color map 1 which ranges from 0. at the tail of the gradi‐
24 ent vector to 1. at the head of the gradient vector. What is drawn is
25 the RGBA color corresponding to the independent variable of cmap1. For
26 more information about cmap1 (see the PLplot documentation).
27
28 Redacted form: plgradient(x,y,angle)
29
30 This function is used in examples 25 and 30.
31
33 n (PLINT(3plplot), input)
34 Number of vertices in polygon.
35
36 x (PLFLT_VECTOR(3plplot), input)
37 A vector containing the x coordinates of vertices.
38
39 y (PLFLT_VECTOR(3plplot), input)
40 A vector containing the y coordinates of vertices.
41
42 angle (PLFLT(3plplot), input)
43 Angle (degrees) of gradient vector from x axis.
44
45
47 Many developers (who are credited at http://plplot.org/credits.php)
48 have contributed to PLplot over its long history.
49
51 PLplot documentation at http://plplot.org/documentation.php.
52
53
54
55 September, 2020 PLGRADIENT(3plplot)