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

Home » Public Forums » archive » Re: Span a graph across 2 spaces in a !P.MULTI environment?
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: Span a graph across 2 spaces in a !P.MULTI environment? [message #65752] Fri, 20 March 2009 10:54
stefan5465 is currently offline  stefan5465
Messages: 13
Registered: March 2009
Junior Member
Actually never mind!

Figured it out:


Need to go with:

!P.MULTI = [0,2,2,0,0] Before plot 1

!P.Multi=[1,2,1] Before plot 2

!P.Multi=[0,2,2]
!P.Multi[0]=2 Before plot 3
Re: Span a graph across 2 spaces in a !P.MULTI environment? [message #65753 is a reply to message #65752] Fri, 20 March 2009 10:46 Go to previous message
stefan5465 is currently offline  stefan5465
Messages: 13
Registered: March 2009
Junior Member
On Mar 20, 4:10 am, David Fanning <n...@dfanning.com> wrote:
> stefan5...@hotmail.com writes:
>> I was wondering if its possible to make a graph fill two 'slots' in a !
>> P.MULTI window...
>
>> I have a 4x4 plotting window, and only the first 3 filled in (1st top
>> left, 2nd top right, 3rd bottom left). Is it possible for me to extend
>> the second graph so that it fills both of space 2 and 4 ?
>
> Pretty much anyone who has taken one of my IDL
> classes can solve this problem. Let's see if I
> can get it right. :-)
>
> !P.Multi=[0,2,2]
> Plot, findgen(11)
> !P.Multi[0]=2
> Plot, findgen(11)
> !P.Multi=[1,2,1]
> Plot, findgen(11)
> !P.Multi = 0
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,

Thanks for the response... Just so I understand the code, does it
basically say:

Set up a 2x2 window.
Plot in the top left.
Go to the bottom left.
Plot in the bottom left.
Go to top right, make top right a 2x1 environment.
Plot top right (and consequently, down to bottom right).
(Not sure what P.Multi=0 does)...

Not too sure how to incorporate this into my code, as the plot command
for the plot currently occupying the top right (the one I want to
stretch down) comes before the plot command to the bottom left.

Swapping the two around isn't possible, due their content, and I
presume if I go to P.Multi[0]=1 (=top right?) and set up a one column,
two row environment, a subsequent call to P.Multi[0]=2 (=bottom left?)
will no longer place it in the bottom left, as defined by the original
P.Multi=[0,2,2] set up.

Not sure if that makes any sense to anyone but me! lol.
Re: Span a graph across 2 spaces in a !P.MULTI environment? [message #65763 is a reply to message #65753] Thu, 19 March 2009 21:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
stefan5465@hotmail.com writes:

> I was wondering if its possible to make a graph fill two 'slots' in a !
> P.MULTI window...
>
> I have a 4x4 plotting window, and only the first 3 filled in (1st top
> left, 2nd top right, 3rd bottom left). Is it possible for me to extend
> the second graph so that it fills both of space 2 and 4 ?

Pretty much anyone who has taken one of my IDL
classes can solve this problem. Let's see if I
can get it right. :-)

!P.Multi=[0,2,2]
Plot, findgen(11)
!P.Multi[0]=2
Plot, findgen(11)
!P.Multi=[1,2,1]
Plot, findgen(11)
!P.Multi = 0

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: double precision?
Next Topic: Help Finding Sources (Peaks) in an Image

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

Current Time: Wed Oct 08 13:49:17 PDT 2025

Total time taken to generate the page: 0.00537 seconds