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

Home » Public Forums » archive » Behaviour of colorbar title in z-buffer?
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: Behaviour of colorbar title in z-buffer? [message #87851 is a reply to message #87850] Fri, 28 February 2014 05:20 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rjp23@le.ac.uk writes:

> I've trimmed it down to just what I think the relevant bits are. Doing the same thing but changing the z-buffer stuff to ps_start/ps_end gives what I'd expect.

OK, so here is what is happening.

Here are your colorbar coordinates:

;set colorbar coordinates
cposx1=0.2
cposy1=0.08
cposx2=0.6
cposy2=0.09

These are coordinates, obviously, of a HORIZONTAL color bar. That is,
the bar is much longer in X than in Y. But, you tell your color bar that
you want a VERTICAL colorbar.

This make absolutely no sense to the color bar program. So, it says to
itself, "This guy obviously doesn't know what he wants, so I'm thinking
he probably got the damn coordinates wrong." And the colorbar routine
switches things around so the you get the vertical color bar you are
suppose to get. But, the TITLE doesn't seem to be getting word of this,
so it goes on what it thinks is the original HORIZONTAL bar.

The COLORBAR routine you are using is so old I'm not exactly sure how it
works, to be honest with you. I haven't seen that code for about five
years. But, I think your problems will be solved if you simply match
your colorbar coordinates with the type of bar you are trying to draw.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to build connection between IDL and postGIS
Next Topic: interpolate weirdness

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

Current Time: Wed Oct 08 19:33:09 PDT 2025

Total time taken to generate the page: 0.00380 seconds