Re: One title to rule them all... [message #57572 is a reply to message #57570] |
Thu, 13 December 2007 04:40  |
ben.bighair
Messages: 221 Registered: April 2007
|
Senior Member |
|
|
On Dec 13, 6:02 am, Lasse Clausen <la...@lbnc.de> wrote:
> Greetings,
>
> suppose I have a plot consisting of four panels on top of each other.
> Let's also suppose all are showing the same quantity, just measured by
> different instruments. Since the y axis title is rather longish - like
> 'Compressional Component [nT]' - I would like one ytitle for all 4
> panels.
>
> I know that I could use YXOUTS to place a string next to the axes,
> however I would need to work out exactly where to place it, so that it
> appears centered. And I am anal about these things, if the title is
> not exactly in the middle it will annoy the heck out of me. So I could
> go about and use XYOUTS with negative character size to then have the
> width of the string and so on and so on and so on... veeery
> complicated. Though, now that I come to think of it, the time it takes
> me to write this article would have been enough to write a little
> procedure...
>
> Anyway, I thought about using PLOT, /NODATA or AXIS but if I set
> YSTYLE=5, then the title is also not drawn, which doesn't really help.
> I also thought about drawing the axis in !P.BACKGROUND but... well, I
> let you work out how pointless this approach is...
>
Hi,
That is the best post title we have seen in a long time!
I wonder if David Fanning's Str_Size( ) would be helpful? Check out
http://dfanning.com/tips/stringsize.html Knowing the string size and
the normalized bounding coordinates of the plots (check out the !X
and !Y variables) should give you pretty darn good control of the text
location.
Cheers,
Ben
|
|
|