Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete the line between the last point and first point?

How to delete the line between the last point and first point? 

 

I want to draw a curve many times, from first point to the end point. and redraw from first point to the end point.But I hope update point by point. but between the end point and the first point,  there is a line. How to delete the line?

 

the code is:

 

CNiReal64Vector plotData(50);

m_graph.ChartLength = 50;
//m_graph.ClearData();

for (int j = 0; j < 2; j++)
{
       for (int i=0; i<50; i++)
      {
               plotData[i] = ((double)rand()/(double)RAND_MAX)*6 + 4;
               m_graph.GetPlots().Item("Plot-1").ChartXY(i, plotData[i]);
               Sleep(100);
      }

}

0 Kudos
Message 1 of 1
(4,197 Views)