The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Can we move multiple data points at a time?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Keya Layek

India
3 Posts

Posted - 11/28/2016 :  08:36:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8 SR4
Operating System:Windows , 64 bit

Shirley_GZ

China
Posts

Posted - 11/28/2016 :  10:36:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please give us more details about your question. I think some screenshots will be much helpful.

And, we have a Gadget "Curve Translate", http://www.originlab.com/doc/Origin-Help/Translate-Curve. Would you please have a try?

Plase note, this tool is availiable since 2016 SR0. You can download our demo version to have a try.http://www.originlab.com/demodownload.aspx

Thanks,
Shirley

Originlab Technical Service Team

Edited by - Shirley_GZ on 11/28/2016 10:38:07 PM
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/29/2016 :  5:22:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kaya Layek,

There is no built-in tool to move graphically selected data points directly by same displacement. As Shirley
suggested, you can share your need in your application with people so that people can get the sense
of the purpose.
The following script code is crude and cumbersome, but does a kind of job. (It would probably require a
newer version than your Origin8.)

///////////////////////////////////////////////////
%B="Vertically(Y) Horizontally(X) Both(X&Y)";
mvdir=1;
getn (Direction to Move?) mvdir:B;  //dir: Y, X, X&Y
kk=0;
type -b Double-click or press ENTER to select the point;
getPts 100 (press ENTER);
def PointProc {
  kk++;
  %(getpts.xdata$)[kk]=X;
  %(getpts.indexData$)[kk]=index;
  type -b Go Next(Double-click or ENTER), or End(select Pointer);
}
def QuitToolbox {
  np=getpts.count;
  type -b Click destination of 1st point(within 7 seconds);
  dotool 2;  //Screen Reader
  type -b Wait a few seconds;
  sec -p 7;  //Pause some seconds
  dotool 0;  //Pointer tool
  type -b Now we update the points.;
  for(jj=1; jj<=np; jj++) {
    ptix=%(getpts.indexData$)[jj];
    ptx=%(getpts.xdata$)[jj];
    pty=%(getpts.data$)[_indx[jj]];
  }
  bk$=token(%C,1,"_")$;
  range -wx rWx = %C;
  uu = range2uid(rWx);
  xds$=uid2Name(uu)$;  //returns e.g. A for plot(A,B)
  range rx=[%(bk$)]!col(%(xds$));
  ddx=rx[1]-X;
  ddy=%(getpts.data$)[1]-Y;
  for(jj=1; jj<=np; jj++) {
    pix=_indx[jj];
    if(mvdir==1 || mvdir==3) {
       %(getpts.data$)[pix]=%(getpts.data$)[pix]-ddy;
    }
    if(mvdir==2 || mvdir==3) {
        rx[pix]=rx[pix]-ddx;
    }
  }
}
///////////////////////////////////////////////////

Hope this helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 11/29/2016 5:23:46 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000