gnuplot question

Austin Godber plug-discuss@lists.plug.phoenix.az.us
Thu, 06 Mar 2003 10:14:59 -0700


David A. Sinck wrote:
> [simple] Given a data file of 360 points, how do you plot a "circle"
> of data points.
> 
> [goal] Given a data file of N points per day over the course of a
> week, how do you make it so that the graph has alignment so that each
> day starts at 0 degrees?

Is this what you are looking for:

set polar
set angles degrees
set size square
set xrange[-2:2]
set yrange[-2:2]
plot "data.dat"

where data.dat is:

0       1
15      1
30      1
45      2
60      1
75      1
90      1
105     1.5
120     1
135     1
150     1
165     1
180     1.7
195     1
210     1
225     1
240     1
255     1
270     1.2
285     1
300     1
315     1
330     1.8
345     1
360     1


Austin

PS - check out:
http://art.aees.kyushu-u.ac.jp/members/kawano/gnuplot/polar-e.html