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

Home » Public Forums » archive » in multiplot to have common xaxis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: in multiplot to have common xaxis [message #93705 is a reply to message #93704] Tue, 04 October 2016 02:36 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Tuesday, October 4, 2016 at 5:33:36 AM UTC-4, sid wrote:
> On Tuesday, October 4, 2016 at 2:16:52 PM UTC+5:30, Helder wrote:
>> On Tuesday, October 4, 2016 at 10:34:06 AM UTC+2, sid wrote:
>>> Hi,
>>> I need to plot time vs four other parameters. Xaxis will be time. So I am using the multiplot.pro for this purpose. But i want only once the Xaxis value to be displayed for the bottommost plot.
>>>
>>> How do we do that, can anybody give some tips.
>>>
>>> thanks
>>
>> Have a look at David's gallery:
>> http://www.idlcoyote.com/gallery/index.html
>> Look for ladder plot. That might be what you're looking for. If not, then you must explain better how it should look like.
>>
>> In general you are looking at the "overplot"-ing. This is ok as long as the 4 vars have similar y values. Here is an example in FG:
>>
>> pp = plot(/test)
>> ppr = pp.xrange
>> xx = findgen(201)
>> yy = sin(!pi*xx/100.0)
>> op = plot(xx,yy,'r',overplot=pp)
>>
>> Cheers,
>> Helder
>
> I have different xaxis ranges say for example
> plot1 x=[14.2,14.4,14.6,14.8]
> y=[1.2e8,1.3e8,1.4e8,1.5e8]
>
> plot2 x=[14.0,14.1,14.2,14.3,14.4,14.5]
> y=[10,20,30,40,50,60]
>
> I need to put both plot1 and plot2 as multiplot with one xaxis.
> thanks

Your data have different ranges, but you get to chose the XRANGE (with the XRANGE) keyword.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hist_nd to resample point data to a grid
Next Topic: for loop problem for beginner

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

Current Time: Fri Oct 10 07:31:20 PDT 2025

Total time taken to generate the page: 1.92192 seconds