comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to get all graphics elements in a Window?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to get all graphics elements in a Window? [message #94412] Fri, 12 May 2017 13:45 Go to previous message
Ayris Narock is currently offline  Ayris Narock
Messages: 2
Registered: May 2017
Junior Member
Hi,

I feel like this should be a simple question but I simply can not find any documentation. It seems like this functionality should exist . . . I hope someone can help.

After using the Plot() or Window() functions I can get a reference to the window (help lists it as a <GRAPHICSWIN>)

I can access the graphics elements contained within if I already know their names using bracket notation, like so:

--------------
x = Findgen(200)
y = Sin(x*2*!PI/25.0)*Exp(-0.01*x)
y2 = Cos(x*2*!PI/25.0)*Exp(-0.01*x)
p = PLOT(x, y, TITLE='PanHandler Test',name="name1")
p2 = PLOT(x,y2, name="name2",OVERPLOT=p)

w = GetWindows(/CURRENT)
p1 = w['name1']
p2 = w['name2']
p1.Select
p2.Select
---------------

But, if I don't already know 'name1' and 'name2', and just have the reference to the window, w, how can I retrieve a reference to all the graphics contained in w?

Thanks,
Ayris
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Isotropic keyword in plot (function graphics)
Next Topic: Convolving in-situ remote sensing reflectance with Landsat's spectral band responses

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:07:54 PDT 2025

Total time taken to generate the page: 0.00258 seconds