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

Home » Public Forums » archive » Re: multi plot with superposed axis
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: multi plot with superposed axis [message #72390] Thu, 02 September 2010 03:15
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Hi,

for some reason ,the ticknames are not displayed under the bottom
plot. When i force it by typing !x.tickname=indgen(4), it does not
locate the names under the ticks but offsted of half a bin to the
right. Is there a way to control the position of the ticknames?
thanks


> Thank you!
>
>> On Sep 1, 10:29 am, bing999 <thibaultga...@gmail.com> wrote:> Ok, thanks a lot. I use IDL 7.
>
>>> It works but bothers me now, is the size. Each plot is a bit elongated
>>> in the horizontal direction and i'd like to make it more "squared'. By
>>> the way, how to make the whole plot bigger ?
>
>> If you are using MULTIPLOT, then it has a /SQUARE keyword which can be
>> set on the first call.  --Wayne
>
>
Re: multi plot with superposed axis [message #72393 is a reply to message #72390] Wed, 01 September 2010 08:42 Go to previous message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Thank you!


> On Sep 1, 10:29 am, bing999 <thibaultga...@gmail.com> wrote:> Ok, thanks a lot. I use IDL 7.
>
>> It works but bothers me now, is the size. Each plot is a bit elongated
>> in the horizontal direction and i'd like to make it more "squared'. By
>> the way, how to make the whole plot bigger ?
>
> If you are using MULTIPLOT, then it has a /SQUARE keyword which can be
> set on the first call.  --Wayne
Re: multi plot with superposed axis [message #72394 is a reply to message #72393] Wed, 01 September 2010 08:27 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Sep 1, 10:29 am, bing999 <thibaultga...@gmail.com> wrote:
> Ok, thanks a lot. I use IDL 7.
>
> It works but bothers me now, is the size. Each plot is a bit elongated
> in the horizontal direction and i'd like to make it more "squared'. By
> the way, how to make the whole plot bigger ?
>
If you are using MULTIPLOT, then it has a /SQUARE keyword which can be
set on the first call. --Wayne
Re: multi plot with superposed axis [message #72395 is a reply to message #72394] Wed, 01 September 2010 08:13 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Sep 1, 10:29 am, bing999 <thibaultga...@gmail.com> wrote:
> Ok, thanks a lot. I use IDL 7.
>
> It works but bothers me now, is the size. Each plot is a bit elongated
> in the horizontal direction and i'd like to make it more "squared'. By
> the way, how to make the whole plot bigger ?
>
>> On Sep 1, 5:31 am, bing999 <thibaultga...@gmail.com> wrote:
>
>>> Hi,
>
>>> I would like to make a plot containing 4 figures, displayed in 2x2, so
>>> that the axis are superposed. (that is to say, in the left column for
>>> instance, the top horizontal axis of the bottom figure is stacked to
>>> the bottom horizontal axis of the top figure)
>
>>> Is there a way to do that ?
>>> Thank you!
>
>> What version of IDL do you use?  In IDL 7, use MULTIPLOT from the NASA
>> IDL library.  In 8, use the layout and /current keywords to your
>> plots, and set margin=0 on all of them.
>
>


In my experience, to get best results it is better to bite the bullet
and just use the position parameter to plot manually. That ensures
that
the plots are positioned just the way you need them.

For instance I would do something like:

xrange=[2,7]
x=findgen(10)
y1=x^2
y2=sqrt(x)

plot,x,y1,xrange=xrange,position=[0.1,0.1,0.9,0.5]
plot,x,y2,xrange=xrange,position=[0.1,0.5,0.9,0.9],/
noerase,xtickn=replicate(' ',30)

Of course you may want to fine tune the y tick labels so they do not
collide.

Ciao,
Paolo
Re: multi plot with superposed axis [message #72396 is a reply to message #72395] Wed, 01 September 2010 07:29 Go to previous message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Ok, thanks a lot. I use IDL 7.

It works but bothers me now, is the size. Each plot is a bit elongated
in the horizontal direction and i'd like to make it more "squared'. By
the way, how to make the whole plot bigger ?


> On Sep 1, 5:31 am, bing999 <thibaultga...@gmail.com> wrote:
>
>> Hi,
>
>> I would like to make a plot containing 4 figures, displayed in 2x2, so
>> that the axis are superposed. (that is to say, in the left column for
>> instance, the top horizontal axis of the bottom figure is stacked to
>> the bottom horizontal axis of the top figure)
>
>> Is there a way to do that ?
>> Thank you!
>
> What version of IDL do you use?  In IDL 7, use MULTIPLOT from the NASA
> IDL library.  In 8, use the layout and /current keywords to your
> plots, and set margin=0 on all of them.
Re: multi plot with superposed axis [message #72399 is a reply to message #72396] Wed, 01 September 2010 03:13 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Sep 1, 5:31 am, bing999 <thibaultga...@gmail.com> wrote:
> Hi,
>
> I would like to make a plot containing 4 figures, displayed in 2x2, so
> that the axis are superposed. (that is to say, in the left column for
> instance, the top horizontal axis of the bottom figure is stacked to
> the bottom horizontal axis of the top figure)
>
> Is there a way to do that ?
> Thank you!

What version of IDL do you use? In IDL 7, use MULTIPLOT from the NASA
IDL library. In 8, use the layout and /current keywords to your
plots, and set margin=0 on all of them.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Insert an image in Excel
Next Topic: object association

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

Current Time: Wed Oct 08 15:17:08 PDT 2025

Total time taken to generate the page: 0.00627 seconds