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   |
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
|
|
|