Colorbar Labels Issue [message #65071] |
Wed, 11 February 2009 13:52  |
plim.dreaming
Messages: 22 Registered: February 2008
|
Junior Member |
|
|
Greetings Greetings,
the labels on my colorbar do not correspond to the tickmarks!!
Here is what I am writing:
colorbar, ncolors=256, bottom=3, divisions=lev-1, ticknames=round
(levelsA/fraction),range=[minrho,maxrho],format='(I4)', position =
pos, color=black, charsize=0.5
and the plot I get has the labels starting at around the third
tickmark and continuing past the edge of the colorbar! So, in effect,
it looks like the ticknames are all shifted to the right.
Any suggestions???
Thanks in advance
B
|
|
|
Re: Colorbar Labels Issue [message #65164 is a reply to message #65071] |
Wed, 11 February 2009 16:04  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
David Fanning wrote:
> plim.dreaming@gmail.com writes:
>
>> Ahh David, it was just dry fire when you said you would be leaving
>> this group!
>> And I didn't bother describing more of the variables because i figured
>> they
>> were not important.
>> AND, what do you mean "how could we possibly debug this for you"? You
>> just did!
>> It was the ticknames. I thought it would be numerical values! ... You
>> do say: "TICKNAMES: A string array of names or values for the tick
>> marks." but i immediately read it as "A string of names or
>> values (numerical) for the tick marks.
>
> Man oh man, I've been feelin' the POWER the past couple of
> days! Don't even have to know what the problem is, just
> bring it on down to the front here and offer it up. Let me
> lay my proverbial hands on you, oh sinner.
>
> "HEAL this man, oh IDL god, and make him WHOLE!"
>
> This could be the call I've been searching for, and
> lead to a whole new career direction. IDL Revivals, Inc.!
> Revive your career and mine. Join me up front, while the
> choir sings...
>
> Cheers,
>
> David
>
> P.S. I don't think my wife is going to like this. :-(
Why not? You could make good money out of that, I am sure ;-)
Ciao,
Paolo
>
> --
> 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: Colorbar Labels Issue [message #65165 is a reply to message #65071] |
Wed, 11 February 2009 15:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
plim.dreaming@gmail.com writes:
> Ahh David, it was just dry fire when you said you would be leaving
> this group!
> And I didn't bother describing more of the variables because i figured
> they
> were not important.
> AND, what do you mean "how could we possibly debug this for you"? You
> just did!
> It was the ticknames. I thought it would be numerical values! ... You
> do say: "TICKNAMES: A string array of names or values for the tick
> marks." but i immediately read it as "A string of names or
> values (numerical) for the tick marks.
Man oh man, I've been feelin' the POWER the past couple of
days! Don't even have to know what the problem is, just
bring it on down to the front here and offer it up. Let me
lay my proverbial hands on you, oh sinner.
"HEAL this man, oh IDL god, and make him WHOLE!"
This could be the call I've been searching for, and
lead to a whole new career direction. IDL Revivals, Inc.!
Revive your career and mine. Join me up front, while the
choir sings...
Cheers,
David
P.S. I don't think my wife is going to like this. :-(
--
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: Colorbar Labels Issue [message #65166 is a reply to message #65071] |
Wed, 11 February 2009 15:26  |
plim.dreaming
Messages: 22 Registered: February 2008
|
Junior Member |
|
|
Ahh David, it was just dry fire when you said you would be leaving
this group!
And I didn't bother describing more of the variables because i figured
they
were not important.
AND, what do you mean "how could we possibly debug this for you"? You
just did!
It was the ticknames. I thought it would be numerical values! ... You
do say: "TICKNAMES: A string array of names or values for the tick
marks." but i immediately read it as "A string of names or
values (numerical) for the tick marks.
Anyways, thank you kindly!
B
On Feb 11, 5:03 pm, David Fanning <n...@dfanning.com> wrote:
> plim.dream...@gmail.com writes:
>> the labels on my colorbar do not correspond to the tickmarks!!
>> Here is what I am writing:
>> colorbar, ncolors=256, bottom=3, divisions=lev-1, ticknames=round
>> (levelsA/fraction),range=[minrho,maxrho],format='(I4)', position =
>> pos, color=black, charsize=0.5
>
>> and the plot I get has the labels starting at around the third
>> tickmark and continuing past the edge of the colorbar! So, in effect,
>> it looks like the ticknames are all shifted to the right.
>
>> Any suggestions???
>
> Pilot error. :-)
>
> I see a couple of errors right off the bat. (1) The Ticknames
> keyword requires a string, and you are passing integers, and (2)
> The Color keyword requires a string, and I doubt this is what
> you are passing it.
>
> As to the rest, we don't know what any of the variables are!!
> How could we possibly debug this for you!?
>
> But, given what I see, pilot error is the most likely cause
> of your problems.
>
> 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: Colorbar Labels Issue [message #65169 is a reply to message #65071] |
Wed, 11 February 2009 14:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
plim.dreaming@gmail.com writes:
> the labels on my colorbar do not correspond to the tickmarks!!
> Here is what I am writing:
> colorbar, ncolors=256, bottom=3, divisions=lev-1, ticknames=round
> (levelsA/fraction),range=[minrho,maxrho],format='(I4)', position =
> pos, color=black, charsize=0.5
>
> and the plot I get has the labels starting at around the third
> tickmark and continuing past the edge of the colorbar! So, in effect,
> it looks like the ticknames are all shifted to the right.
>
> Any suggestions???
Pilot error. :-)
I see a couple of errors right off the bat. (1) The Ticknames
keyword requires a string, and you are passing integers, and (2)
The Color keyword requires a string, and I doubt this is what
you are passing it.
As to the rest, we don't know what any of the variables are!!
How could we possibly debug this for you!?
But, given what I see, pilot error is the most likely cause
of your problems.
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.")
|
|
|