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

Home » Public Forums » archive » Re: getting ytitle to span many plots
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: getting ytitle to span many plots [message #47443] Sun, 12 February 2006 07:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ben Panter writes:

> Although the best solution is almost certainly to directly specify
> POSITION keywords for the plots (with a /NOERASE for the second), then
> XYOUTS as David suggests, you might have a go at padding the ytitle of
> one of the plots with spaces. It's a rough and ready, clunky solution,
> but it might just work.
>
> y_tit=' y'
>
> !p.multi=[0,1,2]
> plot, datax1, datay1, xtitle='x1'
> plot, datax2, datay2, xtitle='x2', ytitle=y_tit

Oh, dear. I think it is time for an intervention. Here, I
came up with this in less than a minute:

!P.MULTI=[0,1,2]
Plot, Findgen(101), YTITLE="", XTitle='Stuff'
ytop = !Y.Window[0]
Plot, Findgen(10), YTITLE="", XTitle='More Stuff'
ybot = !Y.Window[1]
XYOuts, !X.Window[0]-0.05, (ytop-ybot)/2 + ybot, $
'The Y Title', Alignment=0.5, Orientation=90, /Normal
!P.MULTI=0

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: multi-dimensions in IDL
Next Topic: getting ytitle to span many plots

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

Current Time: Sat Oct 11 23:22:55 PDT 2025

Total time taken to generate the page: 1.51981 seconds