scale Function (For GPL Graphs)
Note: If you are specifying a scale associated
with an axis, refer to scale Function (For GPL Axes) . If you are specifying a scale associated with a graphic
element (like a bar or line) or a reference line (form.line
), refer to scale Function (For GPL Graphic Elements and form.line) . If you are specifying a
size for a page, refer to scale Function (For GPL Pages) .
Syntax
scale(<value>, <value>)
<value>. Indicates an absolute value or a percentage for the graph size. The first value indicates the x component of the size (width), and the second value indicates the y component of the size (height). Units or a percent sign can be included with either value (e.g., 30px, 5cm, or 25%). If units are omitted, they are assumed to be pixels. Percentages are proportional to the whole page.
Description
Specifies the size of the data area of a graph, not including axes and legends.
Examples
GRAPH: begin(scale(2in, 4in))
GRAPH: begin(scale(80%, 100%))