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
 All Forums
 Origin Forum
 Origin Forum
 Can we move multiple data points at a time?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Keya Layek Posted - 11/28/2016 : 08:36:16 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8 SR4
Operating System:Windows , 64 bit
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 11/29/2016 : 5:22:03 PM
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
Shirley_GZ Posted - 11/28/2016 : 10:36:50 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000