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

Home » Public Forums » archive » Re: Strange TITLE output using NG PLOT.
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: Strange TITLE output using NG PLOT. [message #73827 is a reply to message #73822] Wed, 01 December 2010 13:58 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
alx wrote:
> OVERPLOT in NG is not like OPLOT in DG: axes and labels are (re)drawn;
> only scale and range from first plot are kept. To ensure speed, you
> should use REFRESH=1 option :
>
> x = findgen(100)
> y = (x/10.0)^3
> p = PLOT( x,y, TITLE='My x-y plot', XTITLE='x-axis', YTITLE='y-axis')
> p.Refresh, /DISABLE
> for i = 0, 31 do !Null = plot(x, y, OVERPLOT=p)
> p.Refresh

Brilliant! Thanks very much. That sped up the process greatly (and solved the title redraw issue too!). DG is still
faster but the 20second wait for NG that I whinged about in my original post is now a *much* less noticeable
large-fraction of a second.

All of the plot examples in the docs I looked at simply used OVERPLOT -- I didn't see any examples using the refresh
method (until I clicked on the method documentation itself after reading your post. D'oh!)

Merci beaucoup!

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: NG Transparency Bug
Next Topic: IDL - Extracting data from within boundary defined by shapefile

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

Current Time: Sun Oct 12 17:07:51 PDT 2025

Total time taken to generate the page: 1.20183 seconds