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 for Programming
 LabTalk Forum
 scale of the yaxis

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
johannes91131 Posted - 01/13/2014 : 08:09:18 AM

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:
1   L A T E S T    R E P L I E S    (Newest First)
AmandaLu Posted - 01/14/2014 : 03:31:00 AM
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

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