Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ScatterGraph Performance issue with Line Width = 2 or greater.

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 3
(2,948 Views)

Hi Belly,

 

Please see this forum.

 

Thanks

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,912 Views)

The ActiveX Graph works great! 

 

Thank you.

0 Kudos
Message 3 of 3
(2,902 Views)