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
 simple plot doesnot work
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Ray111

Israel
Posts

Posted - 06/07/2005 :  6:06:43 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello
I ascii import the worksheet ( named - light1) in Origin 6.1 on which I did some operations (deleted some column and row etc etc via labtalk script) and I have now two column named BE and KE( BE set as X and KE set as Y) and I wanted a simple plot so I used following

win -t plot line;
layer -i %(%1,2); //plot the second column in the worksheet
layer -a;

but it gives me a blank graph
any idea why ?

( when I checked the graph I saw the content of layer1 is light1_BE where it should be light1_KE and thatone it indeed shows in the available data but not in layer content)
(Origin 6.1)

Ray111

Israel
Posts

Posted - 06/08/2005 :  01:40:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ohh I found it
I have to interchange x and y .
It looks like the first column must be x

%D=wks.col2.name$; // get the name of column 3
wo -i 0; // insert a column at the beginning
copy col(3) col(1); // copy contents of column 3 (was col 2) to the first column
del col(3); // delete column 3
wo -n 1 %D; // rename the first column
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