Gnuplot: plot with circles of a defined radius

前端 未结 2 1008
鱼传尺愫
鱼传尺愫 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.

    0 讨论(0)
  • 2021-01-01 19:10

    I used:

    plot "file" using 1:2:($2*0+10) with circles
    

    This will fake a the third column specifying the sizes - it is probably possible to write it simpler, but this worked for me.

    0 讨论(0)
提交回复
热议问题