Gnuplot: plot with circles of a defined radius

前端 未结 2 1034
鱼传尺愫
鱼传尺愫 2021-01-01 18:39

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 t

2条回答
  •  没有蜡笔的小新
    2021-01-01 18:48

    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.

提交回复
热议问题