Image in color scale and gray level scale. [message #90445] |
Tue, 03 March 2015 03:26  |
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   |
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 #90448 is a reply to message #90447] |
Tue, 03 March 2015 03:51   |
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  |
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
|
|
|