Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

ScatterGraph plots with LineWidth = 2 with many points take a while

Hi,

     I use Measurement Studio 8.6.1. I want to plot 10000 points in a ScatterGraph.  With LineWidth = 1 everything works fine.  But if I set LineWidth to 2 it take a while to plot the points.

 

See code below.

 

Thanks for your help.

 

Guillaume

 

            int NB_POINTS = 10000;

            double[] arrX = new double[NB_POINTS];
            double[] arrY = new double[NB_POINTS];

            Random random = new Random();

            for (int i = 0; i < NB_POINTS; i++)
            {
                arrX[i] = random.Next(0, 10);
                arrY[i] = random.Next(0, 10);
            }

            scatterGraph1.Plots[0].LineWidth = 1;

            scatterGraph1.Plots[0].PlotXY(arrX, arrY);
0 Kudos
Message 1 of 1
(5,539 Views)