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

Home » Public Forums » archive » getting ytitle to span many plots
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
getting ytitle to span many plots [message #47454] Fri, 10 February 2006 14:48 Go to next message
Brigette Hesman is currently offline  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 Go to previous message
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: getting ytitle to span many plots
Next Topic: Re: multi-dimensions in IDL

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

Current Time: Sat Oct 11 06:07:06 PDT 2025

Total time taken to generate the page: 0.48217 seconds