T O P I C R E V I E W |
ol6vine |
Posted - 04/07/2003 : 09:40:10 AM 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
|
4 L A T E S T R E P L I E S (Newest First) |
ol6vine |
Posted - 04/14/2003 : 08:25:06 AM 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
|
ol6vine |
Posted - 04/14/2003 : 08:17:43 AM 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
|
ol6vine |
Posted - 04/10/2003 : 1:12:08 PM 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
|
edgar.kaiser |
Posted - 04/10/2003 : 03:48:52 AM 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
|
|
|