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

Home » Public Forums » archive » Image in color scale and gray level scale.
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: Image in color scale and gray level scale. [message #90446 is a reply to message #90445] Tue, 03 March 2015 03:41 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, March 3, 2015 at 12:26:45 PM UTC+1, dave poreh wrote:
> Folks,
> Hi,
> I have an image of dielectric property in size of 280*166 pixels. The data is in the range: -2.0 to 40.0. I need to plot this image in color scale and gray level scale with a legend that shows the color table of my data. I googled this and I could not find anything useful.
> Any kind of help is very appreciated,
> Cheers,
> Dave
> P.S. i am using IDL 8.0

Did you check here:
http://www.idlcoyote.com/gallery/index.html

Depending on what you exactly want, there are lots of good examples:
from the Surface Plots to the Penguin Colony Plot. Be sure to look for "cgColorbar" and http://www.idlcoyote.com/color_tips/colorbar.html. Go through the code and find out how David did it. I'm sure that fact that the images are 280x166 pixels(^2), that it is about dielectrip properties and that the range is between -2.0 and 40.0 are not going to make a big difference. What you will have to decide is: discrete or continuous coloring? What color table for the colored image?

In IDL >8.0 you also have the function graphics function colorbar():
http://www.exelisvis.com/docs/COLORBAR.html

Good luck!
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: REFORM: new subscripts must not change the number elements in array
Next Topic: Function fitting in IDL

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

Current Time: Wed Oct 08 20:04:44 PDT 2025

Total time taken to generate the page: 0.01382 seconds