|
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  |
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  |
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.")
|
|
|