Previous Topic: Inserting Data into a Graph

Next Topic: Redrawing the Graph


Deleting Data from a Graph

Issue the PLOT DELETE command to remove data from a graph. You can issue any of the following versions of the command:

PLOT plotname DELETE DATA linename|barname 
PLOT plotname DELETE DATA [linename or barname]RANGE([XAXIS or YAXIS,min,max)
PLOT plotname DELETE LINE linename 
PLOT plotname DELETE BAR barname 
PLOT plotname DELETE GRAPH

PLOT DELETE DATA command deletes all of the data for the named line or bar. However, this line or bar and its non-data characteristics (such as color) are still defined to CA Automation Point. If you insert new data into the named line or bar later, CA Automation Point displays it using the characteristics of the old line or bar.

PLOT DELETE DATA RANGE command deletes a range of data along the named line or bar.

The PLOT DELETE DATA LINE and PLOT DELETE DATA BAR commands delete both the definition for and the data in the named line or bar. You can reuse the names of deleted lines or bars later to define new lines or bars.

The PLOT DELETE GRAPH command deletes the graph and all information associated with it. The command also clears the display window. After deleting a graph, you can reuse its name later for a new graph.

plotname

The name of the graph that you want to delete or that contains the data that you want to delete.

linename

In a PLOT DELETE LINE command, the name of the line to delete or to remove data from.

barname

In a PLOT DELETE BAR command, the name of the bar to delete or to remove data from.

RANGE

In a PLOT DELETE DATA command, the range of data that you want to delete. You need to specify which axis to delete data from, and the upper and lower limits for the data that you want to delete.

You define the RANGE using these values:

XAXIS or YAXIS

The axis to delete data from.

min, max

The lower and upper limits, respectively, of the data to be deleted. The min value must always be smaller than the max value. The values must also be consistent with the type of data defined for the named axis (through the PLOT DEFINE GRAPH command). For example, you cannot specify min and max time values of 0:00 and 10:00 for an axis that you defined as having numeric data.

Examples:

The following command deletes data from the NOW bar in the SPLPLOT graph:

"PLOT SPLPLOT DELETE DATA NOW"

This command deletes the S008 line:

"PLOT SPLPLOT DELETE LINE S008"

This command deletes the SPLPLOT graph and produces a blank window:

"PLOT SPLPLOT DELETE GRAPH"