Insert a single point with coordinates (NaN, NaN) to break the plot. Simply add an NaN element to your X array and one to the corresponding Y array every time you want to make a new segment. In other words, expand your build array functions such that the old array still comes in the top, the new addition to the bottom, but an NaN constant wired in the middle.
Daniel L. Press
PrimeTest Corp.
www.primetest.com