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
 Function graph legend

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
acerola Posted - 05/23/2014 : 5:08:40 PM
How do I change the function graph legend, so that when I reconstruct the legend it doesn't revert back to F1, F2, etc?
I am using Origin 9.1.
7   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 05/28/2014 : 3:47:14 PM
Hello,

Yes. We have jiraed to improve this in new version.
https://originlab.jira.com/browse/ORG-11247


Right now we have 4 function plot types:
1. 2D funtion plot
2. 2D parametric function plot
3. 3D function plot
4. 3D parametric function plot.

2, 3, 4 are newly added and worksheet/matrix is created together with plot. So user can easily modify long name, units, etc. in worksheet/matrix and have graph updated.

1 is old way so no data is created when function is plotted and that caused difficulty in renaming, getting to data, etc. We will improve it so that for 1, it's easier to create data and modify the long name, etc. as well.

Thanks, Snow

acerola Posted - 05/28/2014 : 3:08:47 PM
It works. Thank you.

I would like to suggest that the option to change the long name be included in the GUI. The solution you provided works fine, but it is very complicated.
Shirley_GZ Posted - 05/28/2014 : 01:37:10 AM
Please follow below steps to change the long name:
1. Copy the below script lines to a new C file in Code Builder, save and Compile it:
void SetDatasetLongName(string dsName, string strLN)
{
	DatasetObject dsObj(dsName);
	if (dsObj)
		dsObj.SetLabel(strLN, RCLT_LONG_NAME, FALSE);
}

2. Go back to Origin workspace, in the Script Window or Command window, run the below script line to call the function defined above in Labtalk :
SetDatasetLongName("F1", "somename");


Originlab Technical Service Team
acerola Posted - 05/27/2014 : 3:50:35 PM
This changed the name of the object but not its long name. I need to change the long name to something like "curve O(h2)".
Shirley_GZ Posted - 05/26/2014 : 10:01:22 PM
With the graph window active, run

set F1 -n Plot_1;


in Command window or script window, then click Refresh button. The long name will update.

Originlab Technical Service Team
acerola Posted - 05/26/2014 : 10:57:23 AM
That works for creating a new function plot in a new graph. But how to change the long name for an already existing function plot? Or how to add a function plot to an existing graph and change its long name?
Shirley_GZ Posted - 05/26/2014 : 01:32:06 AM
When you open the Create 2D/3D Function Plot dialog, go to Label tab, set Long Name for Y/Z, then the legend will show the long name.

Is this what you want?

Originlab Technical Service Team

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