Multiple plots with plot function [message #85392] |
Tue, 30 July 2013 07:07  |
Josh Colwell
Messages: 6 Registered: September 2005
|
Junior Member |
|
|
I'm not able to figure out how to replicate !p.multi functionality with the PLOT function. I create a plot with:
IDL> pt = PLOT(FINDGEN(10),LAYOUT=[1,2,1])
which creates a window with room for two plots, and places this first plot at the top. Is there not a simple way to have a plot go to position "2" in this window? The only thing I can find is manual fiddling with the POSITION keyword. This seems horribly awkward. I hope I'm missing something easy.
|
|
|
Re: Multiple plots with plot function [message #85394 is a reply to message #85392] |
Tue, 30 July 2013 07:10   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Josh Colwell writes:
> I'm not able to figure out how to replicate !p.multi functionality with the PLOT function. I create a plot with:
> IDL> pt = PLOT(FINDGEN(10),LAYOUT=[1,2,1])
> which creates a window with room for two plots, and places this first plot at the top. Is there not a simple way to have a plot go to position "2" in this window? The only thing I can find is manual fiddling with the POSITION keyword. This seems horribly awkward. I hope I'm missing something easy.
Do you mean other than this:
pt2 = PLOT(FINDGEN(10),LAYOUT=[1,2,2])
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Multiple plots with plot function [message #85399 is a reply to message #85396] |
Tue, 30 July 2013 08:51  |
Josh Colwell
Messages: 6 Registered: September 2005
|
Junior Member |
|
|
On Tuesday, July 30, 2013 10:47:38 AM UTC-4, Mark Piper wrote:
> Don't forget the CURRENT keyword!
>
>
>
> p1 = plot(findgen(10), layout=[1,2,1])
>
> p2 = plot(findgen(10), layout=[1,2,2], /current)
>
>
>
> mp
thanks - it was the current keyword I was missing.
|
|
|