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

Home » Public Forums » archive » Color data points by 3rd variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Color data points by 3rd variable [message #84088] Thu, 25 April 2013 06:28
morganlsilverman is currently offline  morganlsilverman
Messages: 46
Registered: February 2013
Member
Hello,

I'm plotting the latitude and longitude locations of the top 5% of my dataset. I want to color the locations of these data points by corresponding no2 values. I'm having a hard time figuring out how to set up the colorscale and colorbar correctly. I tried something along the lines of

no2temp = no2sorted(0:83) ; only want top 5% of data points (83 values out of 1661)
NO2colors = no2temp
NO2colors(*) = 0
NO2colors = fix(no2temp*255/(max(no2temp)-min(no2temp)))
cgcolors = cgColor(Bindgen(256))
NO2colors = cgcolors[NO2colors]

but it doesn't seem to work quite right. I'd like the range to be [1e16, 4e16]. Looking for any insight. Thanks.

Sincerely,
Morgan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reason for Poor Documentation?
Next Topic: Re: Color data points by 3rd variable

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

Current Time: Fri Oct 10 09:15:26 PDT 2025

Total time taken to generate the page: 8.48000 seconds