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
 Plotxy Sheet1 vs Sheet2

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
gringoireli Posted - 11/13/2017 : 12:25:57 PM
Hi Origin folks,

I have a technical question:
How can I do xy plot in labtalk if all x values are in Sheet1 and y values in Sheet2 ?

In sheet1, each column represents x1, x2, ... x10000 while in sheet2 each column represents y1, y2, ... y10000. I would like to plot (x1,y1) to (x10000, y10000) in one xy plot (line plot). I used a loop statement as below:

int nCols = wks.ncols;
loop (ii, 1, nCols)
{
ii=;
	plotxy iy:=([Book2]"Sheet1"!$(ii),[Book2]"Sheet2"!$(ii)) plot:=201 rescale:=1 color:=3 legend:=0 ogl:=!1; 
	sec -p 1;
	set %C -z 2;
} 

But I guess the data is too big (>10000lines and >10000 columns), the drawing is very slow. Is there any fast way such as in matlab one can plot a matrix x vs a matrix y.

Many thanks for your help,

Gringoireli
1   L A T E S T    R E P L I E S    (Newest First)
arstern Posted - 11/14/2017 : 11:57:38 AM
Hi Gringoireli,

Could you please send your project file with your data to tech@originlab.com. We would like to take a look in more detail on how your data is setup so that we can help you further.

Thanks,
Aviel
OriginLab

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