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

Home » Public Forums » archive » Re: Variable y-axis sizes in multiplot/ladder?
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
Re: Variable y-axis sizes in multiplot/ladder? [message #35576] Mon, 07 July 2003 15:10
kewley is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
Haje Korth is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Slider Question
Next Topic: IDL 6.0 release schedule

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

Current Time: Wed Oct 08 11:44:01 PDT 2025

Total time taken to generate the page: 0.00874 seconds