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
 "Compress" column B to length of columb A

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
peterrrrp Posted - 11/08/2016 : 09:51:28 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

What I've done so far:

-New graphic: B(Y1), C(Y1) and drag them into Layer 1
-new Layer 2: mark E(Y2), drag into Layer 2

result so far:


But I want it like this (badly photoshopped):


check here for the columns:


How I'm able to "compress" the temperature exactly from line "0" to line "918640" so the "break" is exactly on top of each other (tempereature peak and "normal" peak)



Origin 2016G (64bit)
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 11/08/2016 : 4:27:56 PM
Hi peterrrrp,

If I understood correctly that you want to "normalize" the X values of one plot to fit them to a range of another plot, maybe you can try the following script on the original worksheet:
////////////////////////////////
  refXcol=1; //X column number as reference
  targetXcol=3;  //X column number to be normalized
  sum(wcol(refXcol));
  mi1=sum.min;  //reference's minimum;
  ma1=sum.max;  //reference's maximum;
  mr1=ma1-mi1;  //reference's range;
  sum(wcol(targetXcol));
  mi2=sum.min;  //target's minimum;
  ma2=sum.max;  //target's maximum;
  mr2=ma2-mi2;  //target's range;
  r12=mr1/mr2;  //ration o ranges
  wcol(targetXcol)=(wcol(targetXcol)-mi2)*r12+mi1; //normalize
////////////////////////////////
Changing the column numbers appropriately, could you please try it?

--Hideo Fujii

lkb0221 Posted - 11/08/2016 : 4:07:53 PM
Hi,

You can just scale your X data by the ratio of the small range and the large range.

Zheng

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