| Syntax |
|
| Documentation | Draws the graph specified by the given points:
Parameters:
x_length, the length of the X-Axis. The starting point of the X-Axis will be (x, y) and the ending point (x + x_length, y). y_length, the length of the Y-Axis. The starting point of the Y-Axis will be (x, y) and the ending point (x, y + y_length). x_min, the minimum value of the X-Axis. x_max, the maximum value of the X-Axis. y_min, the minimum value of the Y-Axis. y_max, the maximum value of the Y-Axis. x1 and y1 through xn and yn, the coordinates of the points of the graph to be drawn. $drawGraph{x}{y}{x_length}{y_length}{x_min}{x_max}{y_min}{y_max}{x1 y1 x2 y2 ... xn yn} Parameters:
x_length, the length of the X-Axis. The starting point of the X-Axis will be (x, y) and the ending point (x + x_length, y). y_length, the length of the Y-Axis. The starting point of the Y-Axis will be (x, y) and the ending point (x, y + y_length). x_min, the minimum value of the X-Axis. x_max, the maximum value of the X-Axis. y_min, the minimum value of the Y-Axis. y_max, the maximum value of the Y-Axis. x1 and y1 through xn and yn, a '$\ ' separeted list of the coordinates of the points of the graph to be drawn.
. the template using this function must have the content type 'image/gif' or 'image/jpeg'. |
| Examples | |
$setDrawColor{red} $drawXAxis{50}{350}{300}{0}{10}{10}{0}{x-Axis} $drawYAxis{50}{350}{300}{0}{10}{10}{0}{y-Axis} $drawGraph{50}{350}{200}{200}{0}{10}{0}{10}{1 7 3 9} Result: in the image with a size of 600/600 pixels and a x/y-Axis a graph appears |
|
| Group | Graphic |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 9 |
| Maximum parameters | <unlimited> |