如何将数据文件的第一行视为gnuplot中的列标签? [英] How to treat the first line of the data file as column labels in gnuplot?

查看:76
本文介绍了如何将数据文件的第一行视为gnuplot中的列标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个这样的表:

A B C D E F G H I 
10 23998 16755 27656 17659 19708 20328 19377 18925
20 37298 33368 53936 41421 44548 40756 40985 37294

我使用此命令进行绘制

plot "C:/file.txt" using 1:2 with lines smooth bezier, "C:/file.txt" using 1:3 with lines smooth bezier, ...

但是,所有标签都作为文件名出现. gnuplot是否可以读取第一行并相应地标记行?

However, all the labels come out as the file name. Is it possible for gnuplot to read the first row and label the lines accordingly?

推荐答案


set key autotitle columnhead

这篇关于如何将数据文件的第一行视为gnuplot中的列标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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