【发布时间】:2013-02-03 11:41:51
【问题描述】:
有什么方法可以迭代地从多个文件中检索数据并将它们绘制在 gnuplot 中的同一张图上。假设我有 data1.txt、data2.txt......data1000.txt 之类的文件;每个具有相同数量的列。现在我可以写一些类似的东西了-
plot "data1.txt" using 1:2 title "Flow 1", \
"data2.txt" using 1:2 title "Flow 2", \
.
.
.
"data1000.txt" using 1:2 title "Flow 6"
但这真的很不方便。我想知道是否有办法遍历 gnuplot 中的 plot 部分。
【问题讨论】:
-
answer below中的
bash函数真的很舒服
标签: gnuplot