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

Home » Public Forums » archive » Multiple plots with plot function
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
Multiple plots with plot function [message #85392] Tue, 30 July 2013 07:07 Go to next message
Josh Colwell is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 #85396 is a reply to message #85394] Tue, 30 July 2013 07:47 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
Don't forget the CURRENT keyword!

p1 = plot(findgen(10), layout=[1,2,1])
p2 = plot(findgen(10), layout=[1,2,2], /current)

mp
Re: Multiple plots with plot function [message #85399 is a reply to message #85396] Tue, 30 July 2013 08:51 Go to previous message
Josh Colwell is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Writing a modified .txt file issue
Next Topic: findfile gives 'Array has a corrupted descriptor' error

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

Current Time: Wed Oct 08 15:07:37 PDT 2025

Total time taken to generate the page: 0.00362 seconds