Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gnuplot: plot with circles of a defined radius

I know on gnuplot you can plot some data with circles as the plot points:

plot 'data.txt' using 1:2 ls 1 with circles

How do I then set the size of the circles? I want to plot several sets of data but with different size circles for each data set.

like image 783
Eddy Avatar asked Jul 31 '12 19:07

Eddy


1 Answers

If you have a third column in your data, the third column specifies the size of the circles. In your case, you could have the third column have the same value for all the points in each data set. For example:

plot '-' with circles
1 1 0.2
e

will plot a circle at (1,1) with radius 0.2. Note that the radius is in the same units as the data. (The special file name '-' lets you input data directly; typing 'e' ends the input. Type help special at the gnuplot console for more info.)

You can look here for more ideas of how to use circles.

like image 189
andyras Avatar answered Nov 03 '22 23:11

andyras