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

Home » Public Forums » archive » Colorbar query.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Colorbar query. [message #7989] Tue, 28 January 1997 00:00
D.Kennedy is currently offline  D.Kennedy
Messages: 26
Registered: January 1997
Junior Member
I have been using the 'color bar' program from David Fanning's home page.
Its very useful, giving me a plot like this:

--------- []
| | []
| | []
--------- []
^ ^
| The colour bar up the side.
The plot.

The problem is that the routine labels the colour bar to the left.
Which is daft as I have largish labels (eg 2.5E+19) and they cram up the
diagram. I have been having difficulty changing the routine to label
to the right. I can't find a (relatively easy) way to do this.
I have seen many IDL plots labelled to the right and reckon there's
a fairly obvious way to do this that I haven't stumbled across in the
docs. Anyone any ideas?

I have the code here:

IF KEYWORD_SET(vertical) THEN BEGIN

PLOT, [1,10], /NODATA, XTICKS=1, YTICKS=divisions, XSTYLE=1, YSTYLE=1, $
POSITION=position, COLOR=color, CHARSIZE=charsize, /NOERASE, $
YTICKFORMAT=format, XTICKFORMAT='(A1)', YTICKLEN=0.1 , $
YRANGE=[min, max], YTITLE=title

If I were not to label the bar is there a neat way to extract the values
that would have been used and slap them on the right hand side?
(A horizontal bar is useless as an easy fix, I need title, subtitle, xaxis
label and given the plot shape there's just no room!)

Please email and post suggestions. And thanks to those who emailed
help on my previous questions, they were very helpful.
--
David Kennedy, Dept. of Pure & Applied Physics, Queen's University of Belfast
Email: D.Kennedy@Queens-Belfast.ac.uk | URL: http://star.pst.qub.ac.uk/~dcjk/
Hi! I'm a .signature virus! Copy me into yours and join the fun!
Re: Colorbar query. [message #7990 is a reply to message #7989] Tue, 28 January 1997 00:00 Go to previous message
D.Kennedy is currently offline  D.Kennedy
Messages: 26
Registered: January 1997
Junior Member
In article <1997Jan28.182554.7512@queens-belfast.ac.uk>,
D.Kennedy@qub.ac.uk (David Kennedy) writes:
> I have been using the 'color bar' program from David Fanning's home page.
> The problem is that the routine labels the colour bar to the left.

Agh! Replying to my own post!
I have managed to write a solution using 'axis', a great routine.
--
David Kennedy, Dept. of Pure & Applied Physics, Queen's University of Belfast
Email: D.Kennedy@Queens-Belfast.ac.uk | URL: http://star.pst.qub.ac.uk/~dcjk/
Hi! I'm a .signature virus! Copy me into yours and join the fun!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Colorbar query.
Next Topic: Idltool under Linux

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

Current Time: Wed Oct 08 13:38:58 PDT 2025

Total time taken to generate the page: 0.00659 seconds