The graph that you are using has had its "Copy Original Plot Data" setting turned off. When you do that, the graph maintains only a pointer to the array data that you passed to the plotting function, not the data itself. This is a memory saving option.
When that setting is turned off, the assumption is that the data is still available at the original pointer location, whenever the graph needs it. However, in this case you are reusing the same array to hold the second plot's data. Consequently, the plot will "disappear" when the scales change, because that's when the graph needs to go back to the original data in order to remap it.
You can fix this by either turning that setting back on in the UI Editor (or programmatically, using SetCtrlAttribute), or alte
rnatively you can use a different array to hold the second plot's data.
Luis Gomes
NI