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
|
|
|