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
 Origin Forum
 several worksheets, one plot

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
jennz Posted - 08/27/2009 : 05:43:47 AM
I have several worksheets of data, does anyone know the Labtalk code to plot different columns from different worksheets onto the same graph?

Cheers!
4   L A T E S T    R E P L I E S    (Newest First)
jennz Posted - 08/31/2009 : 10:38:28 PM
Thank you! It now works fine, hopefully last question - I'm doing a line plot, how do I change the width to thicker?
greg Posted - 08/31/2009 : 12:45:19 PM
X-Functions are only found in Origin 8.

Here is an example using earlier versions of Origin:

win -t plot column; // Load a template - here, the COLUMN template
// Assuming standard column names A, B
// Plot column 2 (B) as Y vs. column 1 (A) as X for each worksheet
layer.plotxy(book1_a,book1_b,203); // 203 is the PlotID for columns
layer.plotxy(book2_a,book2_b,203);
layer -g; // If you wish to group the curves
layer -a; // You will need to rescale
jennz Posted - 08/31/2009 : 07:42:17 AM
Thanks Shirley,

Forgot to mention I'm using Origin 5 and 6. Anyway, I tried the plotxy command, which had no effect. I tried

plotxy iy:=(1,2);

and

layer.plotxy(1,2[,201]);

neither of which gave a plot. Am I using the command wrong? I tried putting win -t plot; and then selecting the worksheet win -a Data3; still didn't work. The help file says to use layer.plotxy(Xdataset,Ydataset[,PlotType]) but I'm not sure what the Xdataset and Ydataset are and nothing I tried works.

I just have two worksheets of data, and want to plot column 2 of Data1 and Data2 on the same graph. Would you be able to give me some example code that works?

Thanks!
Shirley_GZ Posted - 08/28/2009 : 03:57:31 AM
Hi Jennz,

You can use the X-Function plotxy, please see the help page here. http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:plotxy

You also can see some examples in this help page. http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Plotting#plotxy

Thanks,
Shirley

Originlab Technical Service Team

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