tags:

views:

182

answers:

1

Hi,

I'm trying to plot my data into two-dimensional barycentric equilateral triangle using GNUplot.

I'm using the following commands:

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
plot 'data.file'

The above mentioned commands does not create an equilateral triangle instead its making Isosceles triangle.

Please help me!

With Regards, Swati

+3  A: 

It's possible that your figure is being produced with uneven X/Y scaling, with the internal coordinates of your triangle being correct, but the output, being isosceles.

Try adding a command

set size square

For more information check this FAQ.

Damien Ayers
Thank you so much, It's working.
Swati