在许多半径不同的点周围画一个圆 [英] drawing a circle around many points with different radius

查看:57
本文介绍了在许多半径不同的点周围画一个圆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以用类似流动的命令围绕给定点(x,y)画一个圆(例如,点在(X = 5,Y = 7)且圆的半径为R = 2.73):/p>

I can draw a circle around a given point (x,y) with a command like flowing (here for example point is at (X=5,Y=7) and the circle have a radius R=2.73):

set object 1 circle at 5,7 size first 2.73 fc rgb "navy"

现在,如果我有很多点(在txt文件中,每行都是"x y"),并且我想在每个点周围绘制一个具有不同指定半径的圆.我是否应该为每个点i重复命令将对象设置为以Xi,Yi大小的第一个Ri fc rgb海军"盘旋?

Now, if I have many points (in a txt file where each line is "x y") and I want to draw a circle around each point with different specified radius. Should I repeat the command "set object i circle at Xi,Yi size first Ri fc rgb "navy"" for each point i ?!

推荐答案

您似乎想使用 with circle 选项.如果您有一个三列(x y半径)的数据文件,则以下命令将在每个点上绘制半径为半径的圆:

It looks like you may want to use the with circles option. If you have a data file with three columns (x y radius), the following command will plot circles with radii from the file at each point:

 plot 'datafile' u 1:2:3 with circles

http://gnuplot.sourceforge.net/demo/circles.html

这篇关于在许多半径不同的点周围画一个圆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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