The vector is like a C array with some special features. You address its elements with square braces and set the size either in the constructor or with the SetSize method.
If I want to plot the x,y pairs (0,0), (1,1), (2,2), ..., (49, 49) the code would be:
// Create two vectors and set their sizes to 50 points
CNiReal64Vector x(50);
CNiReal64Vector y(50);
// Fill in the vectors with data to plot
for (int i = 0; i < 50; ++i)
{
x[i] = i;
y[i] = i;
}
// Plot the data
myGraph.PlotXvsY(x, y);
TonyH
MeasurementStudio