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
 Origin Forum
 Plotxy Sheet1 vs Sheet2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gringoireli

France
4 Posts

Posted - 11/13/2017 :  12:25:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

arstern

USA
237 Posts

Posted - 11/14/2017 :  11:57:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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