Re: COLORBAR [message #56721 is a reply to message #55359] |
Fri, 09 November 2007 09:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
phillipbitzer@gmail.com writes:
> For anyone who's used D Fanning's colorbar program-
>
> When using colorbar pro, how can I get the values of the tickmarks (!
> x.tickv doesn't work - return an array of 0's)?
>
> Here's the underlying reason, when annotating the color bar, the
> program (seems to one be able to) annotates the major tick marks. I
> actually would like my tick labels not on the major tick marks, but
> "in the middle" of the color. I think this would correspond to (only)
> labelling the minor tick marks.
>
> Maybe a visual would help me be more clear:
>
> Instead of labelling:
> here here here
> |----------|----------|
>
> I would like:
> here here
> |----------|----------|
>
> I've been fooling around with the parameters, but to no avail. Anyone
> else have this need/want before? Anyone have any ideas to accomplish
> this?
The COLORBAR program, for historical reasons, as well as for
ease of programming, uses a PLOT command to do the annotation.
So, what you want to do is not possible with that code.
And because of recent changes, I can't even offer an undocumented
keyword solution that will completely scrub the bar of annotations,
so you could write your own axis labeling routine. :-(
I'd recommend just writing your own colorbar routine. You can use
PLOTS to draw your boxes on the colorbar image, and you can annotate it
however you like with XYOUTS.
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.")
|
|
|