且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用for循环绘制gnuplot中列中数字的倒数

更新时间:2022-12-27 14:53:38

Inside the parentheses the i is only an integer number, and you get always zero. To access the value of a column inside an expression, use column(i):

plot for [i=1:30] 'file' using 1:(1/column(i)) w lp

The $4 is a shortcut for column(4). To understand this better, have a look at

i = 2
plot 'file' u 1:i, '' u 1:(i)

相关阅读

技术问答最新文章