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

Home » Public Forums » archive » Re: How to shift the values of x axis from position of x axis to other
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: How to shift the values of x axis from position of x axis to other [message #70470] Sun, 18 April 2010 07:35
sid is currently offline  sid
Messages: 50
Registered: January 1995
Member
Hi,
I used shift function but in vein because I need to shift the values
both
right and left.
Suppose I am having four arrays like below,
x=[1,2,3,4,5,6,7,8,9,10]

y1=[2,3,1,5,6,7,8,1,7,6]

y2=[5,1,6,7,8,7,7,5,1,8]

y3=[1,2,3,4,5,6,7,8,9,1]

that is if I plot,x,y1&oplot,x,y2&oplot,x,y3
then the minimum of y1, y2, y3 occur at different values of x, say
from
the above arrays, min(y1) occurs at x=3 and x=8, min(y2) occurs at x=2
and
x=9
and min(y3) occurs at x=1 and x=10. Now with reference to min(y2), I
need
to shift min(y1) and min(y3) in such a way that both should occur at
x=2
and x=9.


Can anyone give some tips and suggesions in this regard.
regards
sid




On Apr 17, 1:49 am, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
>> On Apr 16, 6:32 am, sid <gunvicsi...@gmail.com> wrote:
>> Hi,
>>   Thank you for the reply, now if i run this code in terminal, the
>> minimum of  y1 value occurs at x= 1 and the minimum value of y2 occurs
>> at x=3, now I need the minimum values of y1 and y2 to occur at one x
>> value, so can you give me some tips in this regard.
>> regards
>> sid
>
> Hi Sid,
>
> Please use the forum to communicate, this way other can benefit from
> your questions.
>
> As far as your question, look at the SHIFT function in IDL, that
> should do the trick...
>
> G
Re: How to shift the values of x axis from position of x axis to other [message #70494 is a reply to message #70470] Fri, 16 April 2010 13:49 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
> On Apr 16, 6:32 am, sid <gunvicsi...@gmail.com> wrote:
> Hi,
> Thank you for the reply, now if i run this code in terminal, the
> minimum of y1 value occurs at x= 1 and the minimum value of y2 occurs
> at x=3, now I need the minimum values of y1 and y2 to occur at one x
> value, so can you give me some tips in this regard.
> regards
> sid

Hi Sid,

Please use the forum to communicate, this way other can benefit from
your questions.

As far as your question, look at the SHIFT function in IDL, that
should do the trick...

G
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Procedures and Functions - Checking Input Data for Validity
Next Topic: Re: GridData Conundrum

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

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

Total time taken to generate the page: 0.40178 seconds