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
 How to rename a plotted function graph?

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
stevechang Posted - 03/04/2002 : 9:51:14 PM
I used the add function graph to plot a function graph. Origin defaults a name to this function graph like F1. How do I rename it?
2   L A T E S T    R E P L I E S    (Newest First)
stevechang Posted - 03/07/2002 : 11:45:07 PM
Thank you for your help.
I aslo found some scripts from TEMPLATE.OGS and copied to the custom.ogs. It also works, thought I have no idea what the differences are.

//////////////
%B=%C;
GetStr -s Template.FunctionNewName %B;
set %C -n %B;
clr;
break;
Jose Posted - 03/05/2002 : 10:03:39 AM
You can modify the way that NewFunctions are named by adding this macro definition at the end of your macros.cnf file, located at the Origin folder:

def newfunction {
for(ii=1;ii>0;ii++) {
%n=F$(ii); if(exist(%n)==1) continue;
break; };
%n=F$(ii); // standard F# name

getstring (Function name) %n (New Function);
// ask if standard name is valid:
// type a new one of you want

%n=%b;

if(exist(%n)==1)
{
for(ii=1;ii>0;ii++) {
%n=%b$(ii); if(exist(%n)==1) continue;
break; };
%n=%b$(ii);
type -b "Already exists!\nUsing %n";
};
// add a number at the end if that given
// name exists.

create %n -f 10;
def ErrorProc {del %n;};
set %n; // edit function
del -m ErrorProc;
}


To update the definition, you should restart Origin or run the macros file executing "run macros.cnf".

To rename an existing function, use the set command with the -n option, like this:

set OldName -n NewName;



- Jose Viņa
Origin WebRing member


Edited by - Jose on 03/05/2002 10:18:29

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