How to find out if a wave is already displayed in a graph
I am new to Igor programming and this is my first question here.
I have a generated a set of waves, using different equations that I am working with.
I have also created slider controls for the different parameters that are present in the equation. I am trying to make a macro that will enable the user to change the parameters with the slider and see the effects on the graph.
I have a choice of four waves to display. Displaying all of them clutters the graph. I would like to create a toggle button to choose if a given wave is displayed in my graph or not. I have created the button and the procedure. I used the commands appendtograph and Removefromgraph and was able to append a wave and remove a wave. I am not able to query if the wave is already displayed in the graph. Therefore I keep adding multiple copies of the wave or I reach an error where the I try to remove the wave when it is not present in the graph.
My question is : How can I find out if a given wave is displayed in the graph or not. Is there a command for this?
Thu, 06/07/2018 - 09:26 am