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

Home » Public Forums » archive » Re: Stupid question regarding BUFFER keyword in NG output.....
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: Stupid question regarding BUFFER keyword in NG output..... [message #73956 is a reply to message #73863] Wed, 08 December 2010 06:54 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hi Chris,

Chris Torrence wrote:
> Hi Paul,
>
> Well, you have a couple of different options. You could use the
> Refresh method to disable drawing to the window. It will still create
> the window, but you won't see any changes to the plot until you call
> Refresh again.

That's how I did it at first[*], but since I am creating, let's see, 5x32+16x16=416 plots I don't want to create 416
windows on my desktop. I figured I would create them under the hood, return the references in a hash, and then pick and
choose which one to display/modify based on other info from the processing.

> Another crazy way is to use the CopyWindow method to get a screen
> dump, and then throw it into direct graphics:
>
> p = plot(/test,/buffer)
> tv,p.copywindow(),/true
>
> Here's another one for fun:
> p = plot(/test,/buffer)
> for i=0,100 do begin & p.color = !color.(i) & tv,p.copywindow(),/true

While that is a pretty cool technique, I would need to have "regular" access to the plots I choose to display (e.g.
annotate them, add legends, zoom into regions, save them to file etc).

What are the odds for a method to display buffer-ised graphics in a future IDL release?

cheers,

paulv

[*] See a previous post of mine where I was turned onto this technique (using refresh) after I whinged about the
slowness of NG graphics using the regular overplot technique shown in the plot example docs. And the difference in speed
is like night and day. The last two days I've been creating all manner of plots using NG and using them to easily
inspect data, annotate plots, and save them for inclusion in documents. I haven't used DG graphics for a few weeks now.

Oh, and I still think better PS/EPS output support for NG graphics is crucial in future IDL releases -- I have been
playing with the PNG or PDF output options in NG and they just do not cut it quality-wise when the plot has to look
*good* both on-screen (at, say 250% zoom) and in a printout. For publication-quality (including being scaleable)
graphics, I still think DG PS output trumps NG (any method).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help with fsc_plot
Next Topic: Tiff images with "short" Palette?

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

Current Time: Fri Oct 10 12:43:40 PDT 2025

Total time taken to generate the page: 1.71581 seconds