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

Home » Public Forums » archive » Stretch color image with colorbar compatible issue
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
Stretch color image with colorbar compatible issue [message #91022] Tue, 26 May 2015 12:17 Go to next message
changliao1025 is currently offline  changliao1025
Messages: 4
Registered: January 2015
Junior Member
Hi, there!
I am using the cgimage and cgcolorbar to draw some data.
I have to use the stretch keyword in cgimage since data is not quite nice.
However, the colorbar remains the same regardless the stretch changes.
What should I do?
Re: Stretch color image with colorbar compatible issue [message #91025 is a reply to message #91022] Tue, 26 May 2015 20:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
changliao1025@gmail.com writes:

> I am using the cgimage and cgcolorbar to draw some data.
> I have to use the stretch keyword in cgimage since data is not quite nice.
> However, the colorbar remains the same regardless the stretch changes.
> What should I do?

Why is this a problem? Do you mean you don't know how to label the color
bar?

You probably have to apply the same scaling (use cgSclImg) to the color
table vectors, as in this article, to get what you want:

http://www.idlcoyote.com/ip_tips/logscaledbar.html

What kind of stretch are you applying?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Processing about 10,000 tif files
Next Topic: Perform 'find' command (LINUX) in IDL environment

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

Current Time: Wed Oct 08 11:36:51 PDT 2025

Total time taken to generate the page: 0.00460 seconds