Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Unplotting Scatter Graph Points?

Is there a way to remove a plot point from a scatter graph plot?
Thanks in advance for the help,
Dennis
0 Kudos
Message 1 of 3
(3,484 Views)
Hi Dennis,

There are a couple of ways to remove a point. The question is what would you like the resulting graph to look like? If you'd like to have a continuous scatter plot then, you'd have to delete the point from your data structure holding your points (like an array) and shift the array and re-plot it. This will plot your data without the point you deleted.

There is another option. If you know the index of the point you want to delete in your data structure (array), you can set that point to Nan. This is setting that point to a non-integer value. So now the resulting graph is discontinuous. One heads up, if you decide on setting that point to Nan then, ensure to set a property of the scatter graph called 'ProcessSpecialValues' to true. This indicates that your scatter graph can make non-integer values without throwing an exception.

I hope this helps

SijinK
National Instruments.
0 Kudos
Message 2 of 3
(3,481 Views)
Hello SijinK,
Thanks for the help.
As it turns out, I solved this by clearing and re-plotting the data. Even though my data is changing in real time, this method is adequate, and does not show any obvious flicker. And, as long as I use the PlotXY overloaded method for arrays of doubles, then the performance is good.
Thanks again,
Dennis
0 Kudos
Message 3 of 3
(3,472 Views)