Re: Shading plotting symbols [message #78933 is a reply to message #78932] |
Sun, 08 January 2012 08:05  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jack Frost writes:
> I was wondering if it was possible to shade plotting symbols different
> colors? For example, say I have a latitude-longitude plot of the
> Earth, with x symbols showing the locations where some measurements
> were taken. Is it possible to shade these symbols to show the value of
> the measurement, i.e measurements with values between 1-2 are blue,
> 2-3 are green, 3-4 are red etc?
>
> At the moment I am just creating a plot of measurement locations from
> the 1d lat/lon arrays as such:
>
> plot, lon, lat, psym=1, $
> xrange=[0,360], yrange=[-90,90], $
> xtitle='Longitude', ytitle='Latitude', $
> xticks=4, xtickname=['0','90','180','270','360'], $
> yticks=6, ytickname=['-90','-60','-30','EQ','30','60','90'], $
> title='Locations of retrievals'
> filename='ice_locations.png'
> write_png,filename,tvrd()
Yes, of course. Here is an example of how you can
color plot values:
http://www.idlcoyote.com/graphics_tips/coloredline.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|