开发者

gnuplot: Plotting X,Y coordinates and their label

开发者 https://www.devze.com 2023-02-05 20:54 出处:网络
I have the following file (test.dat): A149 127 B19157 C49127 D149 147 E9127 F49 开发者_StackOverflow中文版 12

I have the following file (test.dat):

A   149 127
B   19  157
C   49  127
D   149 147
E   9   127
F   49 开发者_StackOverflow中文版 12
G   129 127

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?

Thanks!


Something along the lines of this should help

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

0

精彩评论

暂无评论...
验证码 换一张
取 消