Having “automatic” x

后端 未结 3 642
天涯浪人
天涯浪人 2020-12-29 04:45

Just a simple question (I imagine) but, lets say I have the following data file:

# no x data, it\'s sampled for instance each second.
23 42 48 
49 89 33
39 4         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 05:27

    Or more simply, you can also type: plot "file.dat" u ($0):3

    This will allow you to modify the index variable linearly, as you would any other column

    Such as scaling by 2 and adding 1: plot "file.dat" u (($0)*2+1):3

提交回复
热议问题