02-22-2024 10:00 AM
Hi, I am doing some measurments, and i would like to do live multiple plots overlapped. For example i take a first array of measurments , plot them , take a second array and plot this with the previous one in the same graph. The problem i am facing is that XY graphs connects the last poitn of the first array of measurments with the first one of the second set of measurments. Someone has some suggestion ?
02-22-2024 10:17 AM - edited 02-22-2024 10:18 AM
Don't use interpolation for the plot style.
(I would also recommend to use a single 1D complex array to build the data. Half the code!)
02-22-2024 12:42 PM
If you insert a single "NaN, NaN" point in between the two graphs, it will not connect them with a line.
However what you really might want to do is make an array of bundles, to be able to put the graphs on different plots, to use different colors, styles, etc:
02-22-2024 03:23 PM - edited 02-22-2024 03:24 PM
The way you are doing now, by using shift registers, you are combining 1 array with the second array , basically you a ploting both arrays together.
In order to do what you want you need to plot "array of XY clusters"
First XY is your first array
Then second array build another cluster, pack them as array of clusters then plot.