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.")
|
|
|