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 single orbits of satellite data in function graphics?
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 single orbits of satellite data in function graphics? [message #84105 is a reply to message #84104] Tue, 30 April 2013 11:18 Go to previous messageGo to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Tuesday, April 30, 2013 12:17:00 PM UTC-6, Mark Piper wrote:
> On Tuesday, April 30, 2013 10:56:08 AM UTC-6, David Fanning wrote:
>
>>
>
>> My first thought would have been to try to plot all points at once, with
>
>> a single Plot() command, without the loop. Did you try that?
>
>>
>
>
>
> As David suggests, vectorization is the IDL Way! Here's an example:
>
>
>
> IDL> x = randomu(1, n)*360
>
> IDL> y = randomu(2, n)*180 - 90
>
> IDL> z = floor(randomu(3, n)*256)
>
> IDL> tic
>
> IDL> p = plot(x, y, rgb_table=27, vert_colors=z, linestyle='none', symbol='+')
>
> IDL> toc
>
> % Time elapsed: 0.54600000 seconds.
>
>
>
> mp

Ooops, n = 1e3 in my example.

mp
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: i cann't open idl because idlde.exe has stopped working.
Next Topic: How to convert saved postscript file to PNG

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

Current Time: Thu Oct 09 15:28:01 PDT 2025

Total time taken to generate the page: 0.08339 seconds