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
 Legend or Text Label with Fitting Equation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cdrozdowski111

USA
247 Posts

Posted - 11/01/2013 :  06:12:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Hideo Fujii

USA
1582 Posts

Posted - 11/01/2013 :  11:03:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 11/01/2013 :  1:10:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It works for me. Thank you!
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/01/2013 :  2:09:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
P.S.
  I have tested "Paste Link" inside the legend, and it worked. Actually, it uses the following notation:
%([Book1]FitPolynomial1,@WL,Notes.Equation)
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 11/01/2013 :  3:47:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/01/2013 :  5:29:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Hideo Fujii on 11/01/2013 6:32:43 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