pltIVector SetValues

Sets the data values of the vector.

Syntax

pltIVector_handle SetValues values

Application

Tcl Modify

Description

This method is only valid for value-based vectors.

Inputs

values
A compound list of data values to be used by the vector.

Example

To set the x and y values for curve 1, which as 11 data points:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle plot_handle
plot_handle GetCurveHandle curve_handle 1
curve_handle GetVectorHandle x_vector_handle x
curve_handle GetVectorHandle y_vector_handle y
x_vector_handle SetValues "0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0"
y_vector_handle SetValues "1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0"
hwi CloseStack

Errors

Success or an error code.