Hello All,
I currently have a scattergraph with 20+ plots with around 25000 - 30000 points in each. The graph is use for trend data over a period of 100 hours. At the end of the test, since the plots are in a CheckedListBox; what's I will like to do is when the user select a plot, the plot LineWidth will change from 1 to 3. So the user will have good visibility on which of the device failed.
The code is ok for couples thousands points but for 25000+ points, the scattergraph take about 40 seconds to repaint itself on the form to repaint 1 plots.
Part of my code...
'Change all graph line width to 1 (This is very quick)
For intGraphLoop = 0 To (ScatterGraph.Plots.Count - 1)
ScatterGraph.Plots(intGraphLoop).LineWidth = 1
Next intGraphLoop
'Circle thru the list and get the one selected
If (lstDutPathMeas.GetItemChecked(lstDutPathMeas.SelectedIndex) = True) Then
If (ScatterGraph.Plots(lstDutPathMeas.SelectedIndex).Visible = True) Then
'Get a the item selected and Bold the graph.
ScatterGraph.Plots(lstDutPathMeas.SelectedIndex).LineWidth = 2
End If
ScatterGraph.Refresh()
End If
I'm using Measurement Studio 7.1.0.306
Thanks all for you time,
- Sebastien