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
 Legend or Text Label with Fitting Equation

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
cdrozdowski111 Posted - 11/01/2013 : 06:12:38 AM
OriginPro 9.1 SR0 64-bit/32-bit, Win7 64-bit, running in VMware Fusion 5.0.3

I assume there is no way to use the equation form a polynomial fitting in a graph legend and have it automatically update if a fitting is recalculated. Is there?

What about a text label?

E.g. Range below

[Book1]FitPolynomial1!Notes.Equation
5   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 11/01/2013 : 5:29:58 PM
Hi,

The following script replaces the ^n notions to the superscript notations, although it works only for the literal strings, but not for the above linkage notations:
doc -e G {
  if(left(%B,4)$=="Text") {
    for(ii=1; ii<10; ii++) {
      string aa$=%B.text$;
      nn=find(aa$,^$(ii));
      if(nn>0) {
        bb$=Replace(aa$,nn,2,\+($(ii)))$;
        %B.text$=bb$;
      }
    }
  }
}

So, you have two exclusive choices - either to use the literal string for this script, or to use the linking string. Could someone please solve this dilemma?

--Hideo Fujii
OriginLab
cdrozdowski111 Posted - 11/01/2013 : 3:47:35 PM
Is there anyway to automatically superscript the exponents in the equation so it looks a little nicer?

y = 4.45877 + 0.00794*x^1 + -2.23731E-6*x^2
Hideo Fujii Posted - 11/01/2013 : 2:09:37 PM
P.S.
  I have tested "Paste Link" inside the legend, and it worked. Actually, it uses the following notation:
%([Book1]FitPolynomial1,@WL,Notes.Equation)
cdrozdowski111 Posted - 11/01/2013 : 1:10:58 PM
It works for me. Thank you!
Hideo Fujii Posted - 11/01/2013 : 11:03:56 AM
Hi cdrozdowski111,

You can copy the table cell in the report sheet as a link by the following steps:

1) Copy the equation cell in the report sheet.
2) In the graph, choose "Edit: Paste Link" menu.
  You may need to refresh the graph to update after recalculation.

If you don't like the table cell border, you can choose "Clear Borders" tool button in the Style toolbar.

Does it work as you wanted?

--Hideo Fujii
OriginLab

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