getting ytitle to span many plots [message #47454] |
Fri, 10 February 2006 14:48  |
Brigette Hesman
Messages: 4 Registered: February 2006
|
Junior Member |
|
|
Hi,
I am trying to plot 2 plots on one page vertically. Each has a
different x-axis but they all have identical y-axis. Currently it
looks like:
________________________________
Y |
T | PLOT
i |
t | 1
l |
e |__________________________________
XTITLE1
_______________________________
Y |
T | PLOT
i |
t | 2
l |
e |_______________________________
XTITLE2
But I want it to look like:
___________________________
|
| PLOT
|
Y | 1
|
T |____________________________
I XTITLE1
T ___________________________
L |
E | PLOT
|
| 2
|
|____________________________
XTITLE2
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?
|
|
|
Re: getting ytitle to span many plots [message #47526 is a reply to message #47454] |
Mon, 13 February 2006 07:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brigette Hesman writes:
> 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!
Well, it is certainly not as elegant as writing the title out
by hand and re-scanning, but it will do in a pinch. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|