Change x-values in gnuplot

前端 未结 1 1865

I\'m plotting a column of data which represents a time series in gnuplot. Every value represents a time value after 500 iterations / time units. Can I tell gnuplot to multiply t

1条回答
  •  深忆病人
    2021-01-22 08:58

    If you have only a single column, gnuplot uses the row number as x value. This can be accessed by the pseudo column 0 and scaled like

    plot 'datafile' using ($0*500):1
    

    or equivalently, if you're calling this from a shell script

    plot 'datafile' using (column(0)*500):1
    

    0 讨论(0)
提交回复
热议问题