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 
Switch to threaded view of this topic Create a new topic Submit Reply
Image in color scale and gray level scale. [message #90445] Tue, 03 March 2015 03:26 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
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
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 next 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
Re: Image in color scale and gray level scale. [message #90447 is a reply to message #90445] Tue, 03 March 2015 03:45 Go to previous messageGo to next message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Tuesday, 3 March 2015 12:26:45 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

http://www.exelisvis.com/docs/image.html
http://www.exelisvis.com/docs/COLORBAR.html

Or use the CG library if you have that installed.

--
Yngvar
Re: Image in color scale and gray level scale. [message #90448 is a reply to message #90447] Tue, 03 March 2015 03:51 Go to previous messageGo to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Tuesday, March 3, 2015 at 3:15:48 PM UTC+3:30, Yngvar Larsen wrote:
> On Tuesday, 3 March 2015 12:26:45 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
>
> http://www.exelisvis.com/docs/image.html
> http://www.exelisvis.com/docs/COLORBAR.html
>
> Or use the CG library if you have that installed.
>
> --
> Yngvar

thanks
I just want to plot it in discrete color/gray scale format.
Cheers,
D.
Re: Image in color scale and gray level scale. [message #90450 is a reply to message #90448] Tue, 03 March 2015 04:33 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Tuesday, March 3, 2015 at 12:51:29 PM UTC+1, dave poreh wrote:
> On Tuesday, March 3, 2015 at 3:15:48 PM UTC+3:30, Yngvar Larsen wrote:
>> On Tuesday, 3 March 2015 12:26:45 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
>>
>> http://www.exelisvis.com/docs/image.html
>> http://www.exelisvis.com/docs/COLORBAR.html
>>
>> Or use the CG library if you have that installed.
>>
>> --
>> Yngvar
>
> thanks
> I just want to plot it in discrete color/gray scale format.
> Cheers,
> D.
Thanks guys. It was very useful :)
Cheers,
Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
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 15:14:02 PDT 2025

Total time taken to generate the page: 0.00477 seconds