I have a problem with the last version of Igor (6.22)
I wrote the following code fot the versione 6.12 and it works
It creates a new panel (panel2) embeded in a existing panel (panel1) and then it dispays a graph in the new panel
With the versione 6.22 it doen't work, I can manage only by creating the new panel not embeded in old one.
Panel2 isn't a top-level window. It is a logical subwindow of Panel1 (the host window).
Use Panel1#Panel2 to refer to the exterior panel, as in this example:
Also, I'd recommend against using a command like 'String wave = "data"'.
Wave is a keyword with so many other meanings you'd be better off using String wavesName="data", instead.
Software Engineer, WaveMetrics, Inc.
I have a related problem to this procedure.
I wrote the code in a way in which I can display different graphs on the panel 2. The problem is that new graph is dislay on the old ones in a new subwindow
I would like to display only one graph (deleting the previuos one), any suggestion?
In any case how can call the different graph?
There are a couple of ways to do this.
If you are making the wave each time you replace the graph, just overwrite the wave each time. You might do something like
// some sort of analysis fills in the data in the wave "data"
data = x // stand-in for analysis
if (WinType("panel2") != 7)
This code is for illustration; I would separate the analysis part from the panel-making part by writing two functions. Then the function that makes the graph can call the analysis function. I find that I virtually always need to call the analysis part separately at some point in the evolution of the code.
Thanks John for the suggestion.
I have other questions
Can I use the cursors on a graph embeded in a panel??
I try to write the command
Showinfo /panel1#panel2 but it doesn't works....
So I have this situation
I can't use the cursors in the graph on panel2???
Sure you can use cursors in the graph subwindow. Just click it to make it the active subwindow and then choose Show Info from the Panel Menu.
Back to top