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

Home » Public Forums » archive » Re: multiple plots of different size on same page
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: multiple plots of different size on same page [message #76967] Wed, 20 July 2011 13:15 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Alexandra Laeng writes:

> put multiple plots of same size on a page is a standard thing.
> Does somebody by any chance knows if it would be possible
> to plot with IDL multiple plots of different sizes on a same page ?
> For example, to have 3 boxes like this
> ______________________ __________ __________
> |______________________| |__________| |__________|

You can put plots wherever you like on a page by
positioning them with the POSITION keyword. You
will also have to use the NOERASE keyword for all
but the first plot.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Re: multiple plots of different size on same page [message #76980 is a reply to message #76967] Tue, 19 July 2011 19:09 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 19, 10:09 pm, Alexandra Laeng <sasha.mozg...@gmail.com> wrote:
> Could you please detail this? My understanding is that by setting !
> P.Multi, one can only have plots of the same size.
> Are you saying that there is a fonctionality (shame on me, but I
> ignore its existence) allowing to play with the size of the plots ?

An easy, but limited, way it can be done is with layout:

p1=plot(dindgen(100),layout=[1,4,1])
p2=plot(2*dindgen(100),layout=[1,4,2],/current)
p3=plot(3*dindgen(100),layout=[1,2,2],/current)

A more flexible way is setting the positions directly:

p1=plot(dindgen(100),position=[0.1,0.4,0.9,0.9])
p2=plot(2*dindgen(100),position=[0.1,0.1,0.9,0.3],/current)
Re: multiple plots of different size on same page [message #76981 is a reply to message #76980] Tue, 19 July 2011 18:09 Go to previous messageGo to next message
Alexandra Laeng is currently offline  Alexandra Laeng
Messages: 20
Registered: July 2011
Junior Member
Hi Paulo,
thanks for your fast reply.

> I should have mentioned that this program is to do multiplot-like
> pages, that is, where the plots have no space between them, sharing
> the axes

Yep, this is not exactly what I would need: my plots have different
axes, and I would need a space in between..

> Otherwise, the standard functionality of the graphics
> functions can do it (with the keywords layout or position).

Could you please detail this? My understanding is that by setting !
P.Multi, one can only have plots of the same size.
Are you saying that there is a fonctionality (shame on me, but I
ignore its existence) allowing to play with the size of the plots ?

Alex
Re: multiple plots of different size on same page [message #76982 is a reply to message #76981] Tue, 19 July 2011 17:16 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 19, 9:08 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> This is one way:
>
> http://www.ppenteado.net/idl/pp_lib/doc/pp_multiplot__define .html
>
> See the fourth plot on the examples.
>

I should have mentioned that this program is to do multiplot-like
pages, that is, where the plots have no space between them, sharing
the axes. Otherwise, the standard functionality of the graphics
functions can do it (with the keywords layout or position).
Re: multiple plots of different size on same page [message #76983 is a reply to message #76982] Tue, 19 July 2011 17:08 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
This is one way:

http://www.ppenteado.net/idl/pp_lib/doc/pp_multiplot__define .html

See the fourth plot on the examples.

On Jul 19, 8:41 pm, Alexandra Laeng <sasha.mozg...@gmail.com> wrote:
> Hi everybody,
> put multiple plots of same size on a page is a standard thing.
> Does somebody by any chance knows if it would be possible
> to plot with IDL multiple plots of different sizes on a same page ?
> For example, to have 3 boxes like this
> ______________________    __________    __________
> |______________________|  |__________|   |__________|
>
> Alex
Re: multiple plots of different size on same page [message #84625 is a reply to message #76967] Thu, 28 July 2011 03:36 Go to previous message
Alexandra Laeng is currently offline  Alexandra Laeng
Messages: 20
Registered: July 2011
Junior Member
On Jul 20, 10:15 pm, David Fanning <n...@dfanning.com> wrote:
> Alexandra Laeng writes:
>> put multiple plots of same size on a page is a standard thing.
>> Does somebody by any chance knows if it would be possible
>> to plot with IDL multiple plots of different sizes on a same page ?
>> For example, to have 3 boxes like this
>> ______________________    __________    __________
>> |______________________|  |__________|   |__________|
>
> You can put plots wherever you like on a page by
> positioning them with the POSITION keyword. You
> will also have to use the NOERASE keyword for all
> but the first plot.

Aha, that was the trick. Thank you so much, worked perfectly.
P.S. wow, the answer to the question, that turned out to be a basic
one, by Fanning itself ..
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL object copying
Next Topic: Re: multiple plot of different sizes on a page

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

Current Time: Fri Oct 10 04:04:45 PDT 2025

Total time taken to generate the page: 1.12571 seconds