05-18-2011 11:27 PM
I am taking data scans, and I want to plot the current scan and the running average. If the scan takes data at N positions of a motor, at position i the current scan will be an array of i elements but the running average will be an array of N elements. I can plot both of these on separate graphs with no problem. How can I plot it on one graph since I can't bundle the data?
Is possible to have the current scan be an N-element array but the last N-i are empty or invisible on the plot?
Thanks
05-19-2011 12:40 AM
Look at the XY graph example in the example finder. There are several different ways of either using arrays and/or clusters to group different sets of data together. You may not need to make the last data points invisible depending on the method you choose.
But if you do make the other elements of the array into the NaN value, then they won't plot on the graph.