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
 simple plot doesnot work

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
Ray111 Posted - 06/07/2005 : 6:06:43 PM
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)
1   L A T E S T    R E P L I E S    (Newest First)
Ray111 Posted - 06/08/2005 : 01:40:33 AM
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

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