Re: Color the points with different colors [message #72726] |
Fri, 01 October 2010 05:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dave Poreh writes:
> I have one array (1D) and I would like to color the points with
> different colors:
> 0.8-1.0->red
> 0.6-0.8->..
> 0.4-0.6->..
> ?.
> 0-0.2->blue
If your values are regularly spaced, Histogram works.
Here is another method for partitioning values for
display, if your values are not regularly spaced:
http://www.dfanning.com/code_tips/partition.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Color the points with different colors [message #72806 is a reply to message #72726] |
Mon, 04 October 2010 23:29  |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On Oct 1, 5:24 am, David Fanning <n...@dfanning.com> wrote:
> Dave Poreh writes:
>> I have one array (1D) and I would like to color the points with
>> different colors:
>> 0.8-1.0->red
>> 0.6-0.8->..
>> 0.4-0.6->..
>> ?.
>> 0-0.2->blue
>
> If your values are regularly spaced, Histogram works.
> Here is another method for partitioning values for
> display, if your values are not regularly spaced:
>
> http://www.dfanning.com/code_tips/partition.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks David. I am also trying to do Overlay Points Source Data on a
Map of yours (http://www.dfanning.com/map_tips/ptsource.html) with IDL
8. I am sure it would be nice!
Cheers,
Dave
|
|
|