Alternative [XY]ticknames on colorbar [message #39406] |
Tue, 11 May 2004 02:58 |
einareinar
Messages: 4 Registered: May 2004
|
Junior Member |
|
|
Hello
Can someone (David?) tell me how to get alternative labels on David's
colorbar?
I wanted to ask you guys if I could avoid changing his program.
Here is my code:
print, names
help,names
colorbar, /vertical, $
Position = col_pos, $
Range=[0,r_levels(n_elements(r_levels)-1)], $
NColors=n_elements(r_levels)-1, $
Bottom=101, $
Color=!P.color, $
Divisions=n_elements(r_levels)-1,$
/right, $
TITLE='mm/3klst',$
ytickname=names,$
format='(A2)'
And here is the resault from the print/help functions:
0 1 2 3 4 5 10
15 20
NAMES STRING = Array[9]
Isn't the _EXTRA keyword supposed to pass ytickname to the AXIS
procedure? And it it doesn't matter if names are a integer array and
format='(I2)'
best reg.
Einar
|
|
|