Re: getting ytitle to span many plots [message #47443] |
Sun, 12 February 2006 07:51  |
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/
|
|
|
Re: getting ytitle to span many plots [message #47444 is a reply to message #47443] |
Sat, 11 February 2006 23:22   |
Ben Panter
Messages: 102 Registered: July 2003
|
Senior Member |
|
|
Brigette Hesman wrote:
> I have tried the MULTIPLOT program listed here but it requires that
> there be no labelling of the two x-axis... I need to be able to label
> the x-axis separately. It is just the y-axis title that I want to
> change. I want it to be centered between the two plots so it does not
> get duplicated twice. Does anyone have any ideas?
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
Ben
--
Ben Panter, Garching, Germany.
Email false, http://www.benpanter.co.uk
or you could try ben at ^^^^^^^^^^^^^^^
|
|
|
|
|
|
Re: getting ytitle to span many plots [message #47527 is a reply to message #47443] |
Mon, 13 February 2006 07:43  |
Brigette Hesman
Messages: 4 Registered: February 2006
|
Junior Member |
|
|
David Fanning wrote:
> !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
>
Thanks David... it works perfectly!
|
|
|
Re: getting ytitle to span many plots [message #47539 is a reply to message #47448] |
Sun, 12 February 2006 11:27  |
news.qwest.net
Messages: 137 Registered: September 2005
|
Senior Member |
|
|
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1e571d31cc8a269e989b7e@news.frii.com...
> Kenneth P. Bowman writes:
>
>> Adobe Illustrator. Seriously, write the file as Postscript, open in
>> Illustrator, make it look good.
>
> I've got to tell you, this is one wacky newsgroup.
> No wonder RSI doesn't want to have anything to do with
> us! :-)
Good thing I didn't post my solution of printing out the
plots and writing the title by hand on the paper, then scanning
it back into the computer. :o
-bob
|
|
|
Re: getting ytitle to span many plots [message #47540 is a reply to message #47448] |
Sun, 12 February 2006 09:57  |
William Daffer
Messages: 34 Registered: February 1999
|
Member |
|
|
David Fanning <davidf@dfanning.com> writes:
> Kenneth P. Bowman writes:
>
>> Adobe Illustrator. Seriously, write the file as Postscript, open in
>> Illustrator, make it look good.
>
> I've got to tell you, this is one wacky newsgroup.
> No wonder RSI doesn't want to have anything to do with
> us! :-)
>
You want wacky? I'll give you wacky!
How about putting the title on using LaTeX?
Don't laugh, I have legacy operational scripts that do precisely
that.
whd
--
BASTINADO, n. The act of walking on wood without exertion.
-- Ambrose Bierce: _The Devil's Dictionary_
|
|
|