Re: Variable y-axis sizes in multiplot/ladder? [message #35576] |
Mon, 07 July 2003 15:10 |
kewley
Messages: 2 Registered: July 2003
|
Junior Member |
|
|
Thank you very much - that is exactly what I needed! my plots look much better now.
Cheers,
Lisa
David Fanning <david@dfanning.com> wrote in message news:<MPG.1973577adaf8a1659896a1@news.frii.com>...
> Lisa K writes:
>
>> I am trying to make a plot like:
>>
>> ------------------------------------------
>> y-axis1 | plot 1
>> |
>> ------------------------------------------
>> |
>> |
>> |
>> |
>> y-axis2 |
>> | plot 2
>> |
>> |
>> |
>> |
>> -------------------------------------------
>> x-axis
>>
>>
>> I have been using multiplot, but it makes the height of the y-axis1 =
>> y-axis2, so that plot 1 and plot 2 are the same size. I'd like to
>> save space and make y-axis1 smaller than y-axis2. Is there a way of
>> doing this with multiplot or ladder? I'm looking in the multiplot
>> source code, and am not sure which parameter I would need to change
>> (if possible). Any help would be greatly appreciated!!
>
> Forget !P.Multi. Try something like this:
>
> Plot, RandomU(seed, 10) * 10, XStyle=9, $
> Position=[0.15, 0.15, 0.9, 0.65]
> Plot, RandomU(seed, 10) * 10, XStyle=1, $
> Position=[0.15, 0.67, 0.9, 0.90], $
> /NoErase, XTickformat='(A1)'
> Plots, [0.15, 0.15], [0.65, 0.67], /Normal
> Plots, [0.90, 0.90], [0.65, 0.67], /Normal
>
> Cheers,
>
> David
|
|
|
Re: Variable y-axis sizes in multiplot/ladder? [message #35587 is a reply to message #35576] |
Mon, 07 July 2003 10:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Lisa K writes:
> I am trying to make a plot like:
>
> ------------------------------------------
> y-axis1 | plot 1
> |
> ------------------------------------------
> |
> |
> |
> |
> y-axis2 |
> | plot 2
> |
> |
> |
> |
> -------------------------------------------
> x-axis
>
>
> I have been using multiplot, but it makes the height of the y-axis1 =
> y-axis2, so that plot 1 and plot 2 are the same size. I'd like to
> save space and make y-axis1 smaller than y-axis2. Is there a way of
> doing this with multiplot or ladder? I'm looking in the multiplot
> source code, and am not sure which parameter I would need to change
> (if possible). Any help would be greatly appreciated!!
Forget !P.Multi. Try something like this:
Plot, RandomU(seed, 10) * 10, XStyle=9, $
Position=[0.15, 0.15, 0.9, 0.65]
Plot, RandomU(seed, 10) * 10, XStyle=1, $
Position=[0.15, 0.67, 0.9, 0.90], $
/NoErase, XTickformat='(A1)'
Plots, [0.15, 0.15], [0.65, 0.67], /Normal
Plots, [0.90, 0.90], [0.65, 0.67], /Normal
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Variable y-axis sizes in multiplot/ladder? [message #35590 is a reply to message #35587] |
Mon, 07 July 2003 09:30  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Lisa,
try the 'position' keyword to place your plot. Don'f forget the /noerase
keyword, when you call plot for the second time. Also, do not specify
!p.multi using this method.
Haje
--
"Lisa K" <kewley@pha.jhu.edu> wrote in message
news:5dd1069d.0307070818.3f0b5731@posting.google.com...
> Hi,
>
> I am trying to make a plot like:
>
> ------------------------------------------
> y-axis1 | plot 1
> |
> ------------------------------------------
> |
> |
> |
> |
> y-axis2 |
> | plot 2
> |
> |
> |
> |
> -------------------------------------------
> x-axis
>
>
> I have been using multiplot, but it makes the height of the y-axis1 =
> y-axis2, so that plot 1 and plot 2 are the same size. I'd like to
> save space and make y-axis1 smaller than y-axis2. Is there a way of
> doing this with multiplot or ladder? I'm looking in the multiplot
> source code, and am not sure which parameter I would need to change
> (if possible). Any help would be greatly appreciated!!
>
> Thanks,
> Lisa
|
|
|