with version 4.3-cvs and a little bit of work:
my_ratio = 0.75
set size ratio my_ratio
xmin = 0.0 ; xmax = 2.0
ymin = 0.0 ; ymax = 1.0
set xrange [xmin:xmax]
set yrange [ymin:ymax]
x1 = 0.3 ; x2 = x1+0.6
y1 = 0.0 ; y2 = y1+0.8
angle = 180./pi * atan((y2-y1)/(x2-x1))
xlength = xmax-xmin
ylength = ymax-ymin
angle_aspect = 180./pi * atan(my_ratio*(y2-y1)/(x2-x1)*xlength/ylength)
angle_string = sprintf("%2.2f°",angle)
set label 1 angle_string at x1+0.1, y1+0.05
set arrow 1 from x1,y1 to x2,y2
set object 1 circle center x1,y1 size 0.2 arc [0:angle_aspect]
plot x
itchy8me wrote:
>
> Hi there...
>
> I'm wondering wether there is a way to display the angles between arrows
> and the x-axis and if there is a way how i would do that?
>
> thanks,
> wernher
>
--
View this message in context: http://www.nabble.com/angles-between-arrows-and-x-axis-tp23191818p23194435.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|