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

Home » Public Forums » archive » Re: Color the points with different colors
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: Color the points with different colors [message #72726] Fri, 01 October 2010 05:24 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Previous Topic: Setting the IDL Path
Next Topic: Problem with initialization of location of plot when using 2 monitors

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

Current Time: Sun Oct 12 10:59:50 PDT 2025

Total time taken to generate the page: 1.20178 seconds