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 for Programming
 LabTalk Forum
 scale of the yaxis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

johannes91131

Germany
4 Posts

Posted - 01/13/2014 :  08:09:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

hey there,
i got a little problem. I try to rescale the yaxis of my data, so that for the following script it will be immediately plottet as logarithimic or as the square root. Unfortunately I cannot find the proper lab talk script for it.I can do it manually, however would prefer it to include it to the following script:
dlgfile gr:=Excel mu:=1;
loop(ii,1,fname.GetNumTokens(CRLF))
{
file$ = fname.GetToken(ii,CRLF)$;
// Customize Excel import options as needed
impExcel fname:=file$
lname:=1
desig:=<Unchanged>
options.names.FNameToBk:=0;
// Einheiten in Tabelle schreiben
col(3)[U]$="A";
col(2)[U]$="V";
plotxy (2,1) plot:=200;
}

thanks a lot in advance

Origin Ver.9 and Service Release (Select Help-->About Origin):
Operating System:

AmandaLu

439 Posts

Posted - 01/14/2014 :  03:31:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

To change the axis scale type, you can use


//Set Y axis as log10
layer.y.type = 2;
//Set X axis as square root
layer.x.formula$=sqrt(x);
layer.x.invformula$ = x^2;
layer.x.type = 11;


Please visit our LabTalk document for further information of Layer.Axis.type.
http://www.originlab.com/doc/LabTalk/ref/Layer-Axis-obj

Please note that layer.x.formula$ and layer.x.invformula$ only support in Origin 9.1 and later version. Please try it in version 9.1. You can try our demo here:

http://originlab.com/index.aspx?go=DOWNLOADS/OriginEvaluation

Thanks,
Amanda
OriginLab Technical Service

Edited by - AmandaLu on 01/14/2014 03:45:29 AM
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