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

Home » Public Forums » archive » Slow object graphics when plotting multiple lines
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: Slow object graphics when plotting multiple lines [message #92973 is a reply to message #92971] Mon, 04 April 2016 08:54 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le lundi 4 avril 2016 17:09:36 UTC+2, Paul van Delst a écrit :
> Hello,
>
> On 04/04/16 10:48, Yngvar Larsen wrote:
>> Another trick, using a single array with lines separated by NaN.
>> Thisworks both in direct and function graphics. With these two added, plus
>> the new CONNECTIVITY trick, your TEST routine prints this on my machine
>> (2012 iMac)
>
> I'm amazed at everyone's ability to discover these things! Wow.
>
> But, I think this need for various "tricks" to speed up basic plotting
> functionality is something that the IDL/Harris folks need to fix by
> making PLOT(/OVERPLOT) - with additional keywords if necessary - work
> similarly, i.e. fast.
>
> Similarly when plotting gobs of satellite data on maps, surfaces,
> contours, etc.
>
> The slowness of function graphics when plotting lots and lots of data
> makes it unusable for looking at large datasets.
>
> Other, similar, tools don't have these issues. (Yes, I mean matlab).
>
> cheers,
>
> paulv

As far as I understand, the function PLOT(/OVERPLOT) was NOT designed as being a simple overplotting routine. When you add a new curve, the entire plot is actually modified (ranges, axes, etc...) at the expense of some slowness. I guess that it is a feature from Exelis.
If you want to do a "simple" overplotting (ala OPLOT), an efficient way is to combine POSITION, CURRENT and [XYZ]RANGE keywords, instead of using OVERPLOT.
The POLYLINE trick, when many curves are needed, looks like to me somewhat faster than Matlab or Python equivalents.
alx.

alx.
[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
Previous Topic: JSON file manipulation in idl
Next Topic: How to create an image with more than one gaussian psfs?

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

Current Time: Wed Oct 08 11:27:22 PDT 2025

Total time taken to generate the page: 0.00474 seconds