Gnuplot:用定义半径的圆绘图 [英] Gnuplot: plot with circles of a defined radius

查看:507
本文介绍了Gnuplot:用定义半径的圆绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 使用plot'data.txt'使用gnuplot可以绘制一些带有圆圈的数据1:2 ls 1 with circle 

然后我如何设置圆圈的大小?我想绘制几组数据,但是每个数据集都有不同大小的圆圈。 解决方案

如果您有第三列您的数据,第三列指定了圈子的大小。在你的情况下,你可以让第三列对每个数据集中的所有点具有相同的值。例如:

 用圆圈绘制' - '
1 1 0.2
e

code>

会在半径为0.2的(1,1)处绘制一个圆。请注意,半径与数据的单位相同。 (特殊文件名' - '可让您直接输入数据;输入'e'结束输入。在gnuplot控制台输入 help special 以获取更多信息。)



有关更多信息,请参阅此处如何使用圈子的想法。


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.

解决方案

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.

这篇关于Gnuplot:用定义半径的圆绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆