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
 Connecting scatter point with arrows

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
mrandersb Posted - 05/27/2010 : 05:36:17 AM
Is it possible to connect scatter point with straight arrows, preferably with an arrow at the middle of the line connecting the points.

Anders
2   L A T E S T    R E P L I E S    (Newest First)
mrandersb Posted - 06/23/2010 : 07:03:22 AM
thanks it seems to work, but there are some scaling problems, but i think i can work it out.
Penn Posted - 06/01/2010 : 01:05:35 AM
Hi Anders,

The current Origin version (Origin 8.1 SR3) does not support this feature. However, as a workaround, you can use LabTalk script to add a line with arrow to do that.

Suppose your graph is come from [book1]sheet1!col(1) & [book1]sheet1!col(2). After making a graph (line + symbol) with these two columns, activate the graph and run the following script.

range xRange = [book1]sheet1!col(1);  // column 1
range yRange = [book1]sheet1!col(2);  // column 2
for(ii=1; ii<[book1]sheet1!wks.maxrows; ii++)
{
	x1 = xRange[ii];  // x coordinate of point one
	y1 = yRange[ii];  // y coordinate of point one
	x2 = xRange[ii+1];  // x coordinate of point two
	y2 = yRange[ii+1];  // y coordinate of point two
	xc = x1+(x2-x1)/2;  // x coordinate of center
	yc = y1+(y2-y1)/2;  // y coorindate of center
	draw -n line$(ii) -lm {x1, y1, xc, yc};  // draw a line
	line$(ii).arrowEndShape = 3;  // add an arrow
	line$(ii).arrowEndWidth = 15;  // set width of arrow
	line$(ii).color = 2;  // set color of line, red
	layer -a;  // rescale the layer
}


Penn

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