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
 How to change default x and y axis titles?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cjbf

UK
8 Posts

Posted - 09/22/2004 :  2:44:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5SR4
Operating System: Windows XP

How can I change the default behaviour of the x and y axis titles to show eg the label of the x or y axis? It's always amazed me that Origin didn't do this automatically, as it must be what most people require?
This seems an obvious question but I can't find the answer.

Thanks in advance,
Chris.

sammi.song

China
46 Posts

Posted - 09/23/2004 :  01:50:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Chris,

In 8.0 version, we are adding new header rows like Long Name, Short Name, Units, Comments, etc in new workbook. And we are also planning to automatic use of these fields when generating plots.
To that end we are adding some substitution notations to LabTalk so that they can be automatically placed those header rows in Axis titles and Legends.

Thanks,
Sammi
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 09/23/2004 :  11:11:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Chris,

As you probably agree, Origin graphs have sophisticated structures like groups, layers, various 2D/3D graph types, etc. But, if you are only looking for a simple graphing such as a scatter/line graph from highlighted columns, you can try the following simple script.
First, put these lines in the CUSTOM.OGS file by a text editor like Notepad. After that in Origin, highlight first 2 cloumns in a worksheet, then click the Custom Tool tool button. You get axis labels from the column names and labels.
Hope this tip helps a little bit of your work...

Hideo
OriginLab

//==========
ii=1;
%P="LineSysmbol Scatter Line Column Bar";
GetN (Graph Type) ii:P (Select a Graph Type);
%O=%h;
%a=%O!wks.col1.name$;
%b=%O!wks.col2.name$;
%k=%O!wks.col1.label$;
%l=%O!wks.col2.label$;
%m=%a %k;
%n=%b %l;
if(ii==1) {
win -t plot LINESYMB; layer -i %O_%b;}
else if(ii==2) {
win -t plot SCATTER; layer -i %O_%b;}
else if(ii==3) {
win -t plot LINE; layer -i %O_%b;}
else if(ii==4) {
win -t plot COLUMN; layer -i %O_%b;}
else { //ii=5;
win -t plot BAR; layer -i %O_%b;};
label -s -xb %m;
label -s -yb %n;
layer -a;
clr;
//==========


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