tags:

views:

533

answers:

0

Hi,

I am using GNUplot to plot my data into barycentric equilateral triangle. The problem is that, I have to draw three lines from the center of the triangle to the three sides of the triangle such that the line should be perpendicular to each side and divide the triangle into three equal parts.

I'm using the following commands in GNUplot to draw a barycentric equilateral triangle.

unset border
unset xtics
unset ytics
set arrow 1 from 0,0 to .5,sqrt(3)/2 nohead front lt -1 lw 1
set arrow 2 from 0,0 to 1,0          nohead front lt -1 lw 1
set arrow 3 from 1,0 to .5,sqrt(3)/2 nohead front lt -1 lw 1
set label 1 "1" at 0.5,sqrt(3)/2+.05
set label 2 "2" at 1+.05,0
set label 3 "3" at -.05,0
set size square
plot 'data.file'

I'm not able to draw three perpendicular lines from the center of the triangle to three sides of the triangle. Please help me.

Thanks!

With Regards, Swati