Previous Topic: Defining Graph Lines or Bars

Next Topic: Deleting Data from a Graph


Inserting Data into a Graph

Issue the PLOT INSERT DATA command to add or change data for a line or bar within a graph. Use this syntax:

PLOT plotname INSERT DATA linename|barname XY(xvalue,yvalue)
plotname

The name of the graph in which you are inserting data.

linename

The name of the line that displays new data. If you have not already defined the name, CA Automation Point defines it as a white line.

barname

The name of the bar that displays the new data. If you have not already defined the name, CA Automation Point defines it as a white bar.

XY

Specifies the point on the graph where CA Automation Point inserts the data. The value for the xvalue or yvalue variables in a XY(xvalue,yvalue) clause can be a string or a positive integer. If you specify a string, CA Automation Point translates that string into a number by matching it against names specified with the TICK operand on the PLOT DEFINE GRAPH command. If you have not specified tick names, CA Automation Point calculates implicit tick positions for the inserted data.

You can specify the XY operand repeatedly in a single PLOT INSERT DATA statement, as long as the length of the entire statement does not exceed 256 characters.

Defaults: None

Examples: