Modifying embedded graphs
fltcoils
The experiment has three tabbed panels, the panels are created by a macro...
Window GridControl() : Panel etc etc.
In the 2nd tab panel are three graphs embedded (subwindows?) one of which has cursors.
the code setting up the graphs is in the attached code snippet.
Graph1
Display/W=(610,32,1215,306)/HOST=# ::::dummywave,corrected1
Graph2
Display/W=(610,309,1215,583)/HOST=# dummywave,:Data:Temp:Disp:abs_display0
Cursor/P A abs_display0 500;Cursor/P B abs_display0 600
I'd like to add cursors to the first graph as well
Cursor/P C corrected1 500;Cursor/P D corrected1 600
didn't seem to work.
I could use some help getting the 1st graph to have cursors
Thanks
PauseUpdate; Silent 1 // building window...
NewPanel /W=(150,50,597,752)
ShowInfo/W=Panel0
Display/W=(37,298,414,527)/HOST=# junk
Cursor/P A junk 45
RenameWindow #,G0
SetActiveSubwindow ##
Display/W=(39,22,412,281)/HOST=# junk2
Cursor/P C junk2 45
RenameWindow #,G1
SetActiveSubwindow ##
EndMacro
One thing to watch out for: if the Cursor command is executed when the appropriate graph sub-window is not the active subwindow, it will not work. To make sure, you might use something like
Cursor/P/W=GridControl#G0 C corrected1 500;Cursor/P D corrected1 600
being very careful to make sure that the graph name there is correct.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
December 13, 2012 at 12:47 pm - Permalink
December 14, 2012 at 05:28 pm - Permalink