$drawGraph

Draws the graph specified by the given points.
Syntax
    $drawGraph{x}{y}{x_length}{y_length}{x_min}{x_max}{y_min}{y_max}{x1}{y1}{x2}{y2} ... {xn}{yn}
DocumentationDraws the graph specified by the given points:

    $drawGraph{x}{y}{x_length}{y_length}{x_min}{x_max}{y_min}{y_max}{x1}{y1}{x2}{y2} ... {xn}{yn}

    Parameters:
      x and y,
      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 and y,
      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.
    Note:
      the X and Y-Axis will not be drawn by this function. If you wish the X and Y-Axis to be drawn use $drawXAxis and $drawYAxis
      .
      the template using this function must have the content type 'image/gif' or 'image/jpeg'.
Examples
    $createImage{600}{600}
    $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
GroupGraphic
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters9
Maximum parameters <unlimited>