Scale measurement data

醉酒当歌 提交于 2019-11-28 10:17:34

问题


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

Is there some way how to scale the different lines with some scaling factor like -1?


回答1:


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)


来源:https://stackoverflow.com/questions/19583526/scale-measurement-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!