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

Home » Public Forums » archive » Re: COLORBAR label too long
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: COLORBAR label too long [message #55357 is a reply to message #55356] Fri, 17 August 2007 10:54 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Ryan. wrote:
> Dear All,
>
> I have created a nice-looking plot with a color bar on the top but the
> labels extend too far past the end of the bar. My plot is positioned
> in the bottom 80% of the window and the color bar is in the top 20%
> (using the POSITION keywords). The array of values I give to the
> COLORBAR procedure extends beyond the end of the bar.
>
> Here is a diagram of what happens:
>
> 1 2 3 4 5 6 7 8 9 0 <-labels
> ---------------------
> --------------------- <-colorbar
> ____________
> | |
> | | <-plot
> | |
> |___________ |
>
> Here is my code:
> PLOT, FINDGEN(10), POSITION=[0.05, 0.05, 0.95, 0.82]
>
> ticks = (SINDGEN((clrTableLength/5)+1)*5)-(clrTableLength/2)
>
> COLORBAR, BOTTOM=0, NCOLORS=clrTableLength, /TOP, $
> TICKNAMES=ticks, COLOR=black, DIVISIONS=(clrTableLength/5), $
> POSITION=[0.07, 0.87, 0.93, 0.95]
>
> 'clrTableLength' is the length of a color table I created. Currently
> I am using a table of length 100 (i.e. clrTableLength=100)

Shouldn't "divisions" = (clrTableLength/5)+1 ?

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Adjusting Trackball Radius
Next Topic: MODIS spectral radiance

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

Current Time: Fri Oct 10 14:18:49 PDT 2025

Total time taken to generate the page: 0.48806 seconds