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

Home » Public Forums » archive » Re: How to display NG created in a buffer?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to display NG created in a buffer? [message #77498 is a reply to message #77497] Fri, 02 September 2011 13:33 Go to previous messageGo to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Sep 2, 12:47 pm, Paul van Delst <paul.vande...@noaa.gov> wrote:
> Hello,
>
> I'm doing this sort of thing:
>
>   w = window(dimensions=[800,1000], buffer=buffer)
>
>   ; Plot Tb spectra
>   spectra = plot(xrange,yrange,/current, ...etc...)
>
> for many many plots and to generate output I set the "buffer" keyword.
>
> Everything works fine. When I return the window id, w, I can create output like so,
>
>   IDL> w.save, 'test.png'
>   IDL> $display test.png
>
> and, yea verily, there is my plot.
>
> But what I also want to do is to redisplay my graphic in the buffer on a regular window. Something like
>
>   IDL> w.display
>
> I tried using "show" with no luck:
>
>   IDL> w.show
>   % Attempt to call undefined method: 'GRAPHICSBUFFER::SHOW'.
>   % Execution halted at: $MAIN$
>
> I notice there is an IDLgrBuffer object, and the docs tell me
> "Object trees can be drawn to instances of the IDLgrBuffer object and the resulting image can be retrieved from the
> buffer using the Read() method."
>
> But that gives me an IDLgrImage object:
>
>   IDL> help, w.read()
>   <Expression>    OBJREF    = <ObjHeapVar605455(IDLGRIMAGE)>
>
> which simply kicks the can down the road: How to display an IDLgrImage object? And is that what I want (i.e. an image)?
> I want to be able to manipulate the displayed graphics just as if I had created it in an "active" window.
>
> Any tips, tricks appreciated.
>
> cheers,
>
> paulv

Haje/Mike discussed something similar (using CopyWindow) here:
http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/c296041d95207a04/e159977b26f5a678

HTH,
Manodeep
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Font Tables Gone
Next Topic: help with Imagemap to display gridded data

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

Current Time: Sat Oct 11 08:11:29 PDT 2025

Total time taken to generate the page: 0.88115 seconds