Home »
Public Forums »
archive »
Color data points by 3rd variable
Color data points by 3rd variable [message #84088] |
Thu, 25 April 2013 06:28 |
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
|
|
|
Current Time: Fri Oct 10 09:15:26 PDT 2025
Total time taken to generate the page: 8.48000 seconds