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

Home » Public Forums » archive » IDL 8.2.2 released
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: IDL 8.2.2 released [message #83761 is a reply to message #83575] Thu, 21 March 2013 02:38 Go to previous messageGo to previous message
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
> Le mercredi 20 mars 2013 10:58:17 UTC+1, Tom Grydeland a écrit :
>> Building up plots incrementally is still painfully slow.

On Wednesday, March 20, 2013 4:07:23 PM UTC, alx wrote:
> You should not call the NG plot function in a loop. The POLYLINE function with using CONNECTIVITY keyword is much better in your case.

Sure. Myself, I used PLOT with NaNs as every third value. That also works.

> the execution time goes from 36.1 sec. on my machine down to 0.031 sec.
> A factor 1000 which has to be explained by Exelis...

This is what I'm getting at. Your workaround, and mine as well, forces all the lines drawn in one command to have the same properties, and makes it impossible to hold on to separate handles for them, should that be of interest. Say you wanted the ability to draw lines in individual colors, or to selectively highlight one of the lines at a later point.

Saying "don't call NG routines in a loop" is useful practical advice, but unsatisfactory. Varying N in my example demonstrates quadratic increase in time with N, so it appears that all existing graphic elements are queried (e.g. for XYZ boundaries) whenever a new element is added. Surely there is an object in the graphics bestiary which could be responsible for remembering and updating the X/Y/Z extrema instead of having to recompute them on every operation? For extra points, identify all other instances where every element in a graphic is being queried.

> alain.

--T
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: netCDF adding variable to an existing file
Next Topic: nearest node of Delauny tesselation

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

Current Time: Wed Oct 08 16:04:43 PDT 2025

Total time taken to generate the page: 0.00455 seconds