秤测量数据 [英] Scale measurement data
本文介绍了秤测量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些测量数据,experiment.dat
像这样:
I have some measured data, experiment.dat
which goes like this:
1 2
2 3
现在我想通过一些命令行来绘制它们
Now I want to plot them via some command line
plot "experiment.dat" using 1:2 title "experiment" with lines lw 3
是否有某种方法可以使用-1之类的缩放因子来缩放不同的行?
Is there some way how to scale the different lines with some scaling factor like -1?
推荐答案
是的,您可以在using
语句中进行任何类型的计算.要用-1
缩放y
值(第二列),请使用
Yes, you can do any kind of calculations inside the using
statement. To scale the y
-value (the second column) with -1
, use
plot "experiment.dat" using 1:(-1*$2)
这篇关于秤测量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文