Re: multiple plots of different size on same page [message #76967] |
Wed, 20 July 2011 13:15  |
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   |
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   |
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 #84625 is a reply to message #76967] |
Thu, 28 July 2011 03:36  |
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 ..
|
|
|