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

Home » Public Forums » archive » Re: Am I using FSC_colorbar correctly?
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
Re: Am I using FSC_colorbar correctly? [message #73483] Thu, 11 November 2010 09:52
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> I've read that article and I don't have the black line in my
> colorbar. The "wonky" part of my plots is that the color is shifted
> in the plot. If you take a look at this plot (http://
> brutus.uwaterloo.ca/~rchughes/misc/snrvscoldst2008.jpg) you'll see
> that the cyan (or hotter) doesn't always line up with the "V" dip in
> the plot. This is indirectly showing satellite orbital geometry which
> is quite predictable and these values don't make much sense.

Yeah, I don't think you can blame the color bar for that.
It pretty much just does what you tell it to do. It's more
like a well-trained dog than it is like a wife who is
smarter than you and knows what you mean to say, rather
than what you actually say. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Am I using FSC_colorbar correctly? [message #73484 is a reply to message #73483] Thu, 11 November 2010 09:21 Go to previous message
rchughes is currently offline  rchughes
Messages: 26
Registered: April 2006
Junior Member
Wow, I get the man himself! The ideal person to help me set it up
correctly.

I've read that article and I don't have the black line in my
colorbar. The "wonky" part of my plots is that the color is shifted
in the plot. If you take a look at this plot (http://
brutus.uwaterloo.ca/~rchughes/misc/snrvscoldst2008.jpg) you'll see
that the cyan (or hotter) doesn't always line up with the "V" dip in
the plot. This is indirectly showing satellite orbital geometry which
is quite predictable and these values don't make much sense.

As I was waiting for a reply to my post, I was working on something
else which could be the problem. From this it looks like it could be
a misalignment of data in my input arrays. I'm using where() to
remove some points with no data and it looks like the 'dates' array
got handled differently. Which makes sense from the plot because more
data points in the dates array would lead to this problem.

David, thanks for looking it over and for a great IDL library.
Ryan.

On Nov 11, 11:37 am, David Fanning <n...@dfanning.com> wrote:
> Ryan. writes:
>> Could someone be kind enough to double check my code to make sure I'm
>> using David Fanning's fsc_colorbar.pro routine correctly?  I've read
>> the article on his website on contiguous colors and I think I've
>> configured it correctly but some results are wonky so I want to rule
>> out plotting error.  I've also downloaded a recent copy of David's
>> library because I know he recently changed the colorbar routine name.
>
> I'm not sure what "wonky" means in this context, but
> I would certainly change the "color" parameter to
> "annotatecolor", otherwise you might see a black
> color in your color bar.
>
>   http://www.dfanning.com/color_tips/lineinct.html
>
> Is that what "wonky" means?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Am I using FSC_colorbar correctly? [message #73485 is a reply to message #73484] Thu, 11 November 2010 08:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> colorbardetails = create_struct( $
> 'vertical', 1, $
> 'right', 1, $
> 'bottom', 0, $
> 'ncolors', 250, $
> 'color', BLACK, $
> 'range', [tmin, tmax] $
> )

I would specify this structure like this:

colorbardetails = create_struct( $
'vertical', 1, $
'right', 1, $
'bottom', 0, $
'ncolors', 250, $
'annotatecolor', "black", $
'range', [tmin, tmax] $
)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Am I using FSC_colorbar correctly? [message #73488 is a reply to message #73485] Thu, 11 November 2010 08:37 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> Could someone be kind enough to double check my code to make sure I'm
> using David Fanning's fsc_colorbar.pro routine correctly? I've read
> the article on his website on contiguous colors and I think I've
> configured it correctly but some results are wonky so I want to rule
> out plotting error. I've also downloaded a recent copy of David's
> library because I know he recently changed the colorbar routine name.

I'm not sure what "wonky" means in this context, but
I would certainly change the "color" parameter to
"annotatecolor", otherwise you might see a black
color in your color bar.

http://www.dfanning.com/color_tips/lineinct.html

Is that what "wonky" means?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Another issue with the garbage collector?
Next Topic: IDLDoc Question

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

Current Time: Wed Oct 08 19:44:01 PDT 2025

Total time taken to generate the page: 0.00649 seconds