gnuplot:绘制X,Y坐标及其标签 [英] gnuplot: Plotting X,Y coordinates and their label

查看:218
本文介绍了gnuplot:绘制X,Y坐标及其标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下文件(test.dat):

I have the following file (test.dat):

A   149 127
B   19  157
C   49  127
D   149 147
E   9   127
F   49  12
G   129 127

我希望gnuplot用标签标记这些点(一个点代表位置(149,127),另一个点代表(19,157),依此类推).我该怎么办?

I would like gnuplot to plot these points with their label (a dot a position (149, 127), another dot at (19, 157), etc.). How can I do this?

谢谢!

推荐答案

类似的方法应该有所帮助

Something along the lines of this should help

gnuplot>使用带有标签的($ 2 + 3):($ 3 + 3):1绘制"data.txt",使用2:3绘制"data.txt"

gnuplot> plot "data.txt" using ($2+3):($3+3):1 with labels, "data.txt" using 2:3

这篇关于gnuplot:绘制X,Y坐标及其标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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