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
 Lines connecting points in worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ol6vine

Canada
4 Posts

Posted - 04/07/2003 :  09:40:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have Origin 7 and would like to connect points in a graph by identifying those points in the worksheet. Thus I can use a column in the worksheet to give points a particular symbol shape or size. Is it possible to have a column in the worksheet which identifies points that are to be connected by a straight line?

Thank You

Peter

edgar.kaiser

Switzerland
29 Posts

Posted - 04/10/2003 :  03:48:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Peter,

I am not aware of a built-in option for connecting points by an indicator of a separate columns.
However I have 2 ideas you could try, if you are willing to deal with programming/scripting:

1. Write a script that uses the DRAW command to draw lines into your plot. The terminating points of that lines could be defined by an indicator in a column.

2. Group the points to be connected into blocks of adjacent rows and leave an empty row between the blocks. If your data is distributed randomly use a script to rearrange and introduce gaps. The script could evaluate your indicator column to perform that task.

Best regards,

Edgar

Go to Top of Page

ol6vine

Canada
4 Posts

Posted - 04/10/2003 :  1:12:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Edgar,

Thank you very much. I have done a little scripting in ORIGIN but not for a few years. Your idea for identifying lines sounds very good. I will try it. Thank you again.

Peter




Go to Top of Page

ol6vine

Canada
4 Posts

Posted - 04/14/2003 :  08:17:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

Hi Peter,

I am not aware of a built-in option for connecting points by an indicator of a separate columns.
However I have 2 ideas you could try, if you are willing to deal with programming/scripting:

1. Write a script that uses the DRAW command to draw lines into your plot. The terminating points of that lines could be defined by an indicator in a column.

2. Group the points to be connected into blocks of adjacent rows and leave an empty row between the blocks. If your data is distributed randomly use a script to rearrange and introduce gaps. The script could evaluate your indicator column to perform that task.

Best regards,

Edgar



Go to Top of Page

ol6vine

Canada
4 Posts

Posted - 04/14/2003 :  08:25:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Edgar,
I have used your suggestion and written a program that produces a line that connects two adjoining rows in a worksheet:

//Worksheet with 3 columns ( 1, 2, XX)
//Draw black line between point at row ii
// and point at row ii+1 if
// column XX[ii] = 4
// To run script outline and ENTER
loop(ii, 1,5){
if(data1_XX[ii]==4){
myVar1=%(data1,1,ii);
myVar2=%(data1,2,ii);
myVar3=%(data1,1,ii+1);
myVar4=%(data1,2,ii+1);
draw -w 4 -l {myVar1,myVar2,myVar3,myVar4}
}}

Thank you very much for your suggestion.

Peter

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