Hi all
I am looking for help and advices. I am plotting map showing cities. I
would like put different colors in these cities that correspond with a
colorbar. The cities will have some values that should be display on
the colorbar. I red some staff on this but I am not winning, I spent
all most a half month trying this, Please help me.
I will have some values like this NAQ=2.2, STF=1.4, etc
loadct,33
minval=-100
maxval=100
map_set, 72.5,-45,/orthographic,/isotropic, limit=[55,-75,90,-15],/
continents,/grid
cgcolorbar,range=[minval,maxval],/vertical,divisions=10
;lons=[-42.68,-38.56,-37.56,-36.66,-40.25,-37.56,-38.72,-41. 87,-39.46,-41.11,-32.05,-28.35]
;
;lats=[65.22,66.92,69.52,70.98,72.18,73.56,74.83,75.97,78.57 ,80.35,82.71,84.46]
lons=[314.56,310.32,308.27,307.10,309.28,306.43,306.47,307.8 7,303.85,302.82,294.90,290.77]
lats=[61.16,62.00,64.17,65.42,67.02,67.93,69.25,70.68,72.78, 74.57,76.02,77.47]
!p.charsize=0.8
cgplot,lons,lats,psym=4,/overplot
cities=['NAQ','FHB','GHB','SKT','STF','ATU','GDH','UMQ','UPN ','KUV','SVS','THL']
xyouts,lons,lats,cities
xyouts,337,61.23,'*GOOSE BAY',charthick=1.2,charsize=1,/data
end
Many thanks
Zolile
|