Re: How to access properties of multiple plots in a function graphics window? [message #86474 is a reply to message #86472] |
Tue, 12 November 2013 11:19   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hi Matthew,
On 11/12/13 13:53, Matthew Argall wrote:
> You can try using the Select and GetSelect methods to pull the individual object references out of the window...
>
> http://www.exelisvis.com/docs/GetSelect_Method.html
> http://www.exelisvis.com/docs/Select_Method.html
I wanted to avoid having to actually select something but, in a pinch,
this will work for me. Thanks! Very cool.
BTW, I tried the /ALL keyword to Select on the window but it didn't work:
IDL> w.select,/all
IDL> x=w.getselect()
IDL> help, x
X UNDEFINED = !NULL
But, when I actually selected everything in the window with the mouse
and then did
IDL> x=w.getselect()
I got:
IDL> help, x
X OBJREF = Array[28]
which does contain what I want, I just have to sort through it all:
IDL> for i=0,27 do help, x[i]
<Expression> AXIS <702414>
<Expression> AXIS <702415>
<Expression> AXIS <702416>
<Expression> AXIS <702417>
<Expression> TEXT <702418>
<Expression> BARPLOT <698847>
<Expression> GRAPHIC <702419>
<Expression> AXIS <702420>
<Expression> AXIS <702421>
<Expression> AXIS <702422>
<Expression> AXIS <702423>
<Expression> TEXT <702424>
<Expression> BARPLOT <696924>
<Expression> GRAPHIC <702425>
<Expression> AXIS <702426>
<Expression> AXIS <702427>
<Expression> AXIS <702428>
<Expression> AXIS <702429>
<Expression> TEXT <702430>
<Expression> BARPLOT <695001>
<Expression> GRAPHIC <702431>
<Expression> AXIS <702432>
<Expression> AXIS <702433>
<Expression> AXIS <702434>
<Expression> AXIS <702435>
<Expression> TEXT <702436>
<Expression> BARPLOT <693078>
<Expression> GRAPHIC <702437>
I do wish the "w.select,/all" worked, though.
Thanks again.
cheers,
paulv
|
|
|