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
 BUG in Vertical Translation?!!!

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
a_user Posted - 02/28/2000 : 8:08:00 PM
Hi...

I'm using Origin 5 with SR 2 and have encountered the following problem. For horizontal translation I can translate all "grouped" curves at one go. For vertical translation, however, I could only do it one curve at a time. May I know how I can do a group vertical translation. Your assistance is urgently sought! Please email me your solution at jo@post1.com if possible. Thanks!

Jo.

2   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 03/01/2000 : 6:12:00 PM
Yes, you explain correctly why Translate X works for grouped data but Translate Y does not.

Origin's analysis features act on the active dataset, which is why only the active dataset gets translated when you select Translate Y. However because Translate X modifies the X dataset, any associated Y dataset will become translated.

I have written a script that modifies the sections of code in the Granaly.ogs file that get executed when you select this menu item.

1. Open GRANALY.OGS in Notepad. (This file can be found in your Origin directory.)
2. Search for '[TransY]'.
3. Modify the script so that it looks like the following:

#Pick one pt as ref and move curve to a new pt vertically
// JMP for v5.0 05/29/97 USE_EXCHAGEXY_PROPERTY
%Z="";
count=0;
doc -e DY {
%Z=%Z %C;
count++;
}
if (layer.ExchangeXY)
run.section(,TransXAction);
else
run.section(,TransYAction);
return 0;

4. Modify the next section to look as follows:

[TransYAction]

def EndToolbox
{
y_last=y;;
def EndToolbox {
y-y_last;
loop(ii,1,count){
undo %[%Z,#ii];
%[%Z,#ii]+y;
}

};
GetPts -Y 1 (Move cursor to new location, hit ENTER)
};
Pick1pt;


This will now act on all datasets in the layer.

-----------
Laurie Shea
Microcal Technical Support

[This message has been edited by Laurie (edited 03-02-2000).]

hschaefer Posted - 02/28/2000 : 8:00:00 PM
Hello,

maybe, I can do a close guess, what might happen, regarding your specific *problem*:

Do you have different x-columns or only one x with multiple y-datasets for your plot? Then, I assume, I could explain that behaviour: a horizontal translation will be based on Origin having to transform only one *single* dataset, the x-column, whereas all y-data depend on that x-column and now, all curves are shifted horizontally.

Yet, when trying a vertical translation for your grouped curves, then Origin would have to deal with transforming several, separate y-datasets/columns, now obvioulsy only moving the single curve of the active data-set!

... well, only a guess to make it plausible.

Might be necessary, to handle that case of vertical translation of grouped curves with a small script?

Hubert


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