12-10-2018 03:19 PM
Hi,
I am using an XY Graph to do multiple plots. Please see the image attached. Each of the point is an individual plot with (single X & Y coordinate).
Please see the image attached.
By default, the plot is in the line style (meaning no points will be shown). So for each of the plots (plots 1 - 25), I have had to go to the properties of each plot and change it to points. This is not an efficient way to do so. Is there an automatic way of changing the line graph to points only rather than going to each points properties and changing it?
Thanks,
Neeraj
Solved! Go to Solution.
12-10-2018 03:43 PM
Yup, easy to do with property nodes! Right click your graph and select Create -> Property Node -> Active Plot. Expand the list down to include Plot.PointStyle and Plot.Interpolation. Set those to 1 and 0, respectively (the first picks what style of point you want and the second turns off the interpolation line).
You will need to call this for each plot in your XY graph- you must write Active Plot first, then whatever Plot variables you want to set, so you will need to write ActPlot to 0, then set Point Style and Interpolation, then write ActPlot to 1, set point style and interpolation, and so on.
Just stick it in a For loop and wire the i terminal to the ActPlot input and run the loop a number of times equal to the number of plots you want to display and you're done.
12-10-2018 05:04 PM
That worked! Thank you very much.
12-10-2018 06:37 PM
For a more generic solution, use a while loop and terminate on error. This way you don't even need to know how many traces you have.