I have two signals, x, xfilter stored on disk as signal.dat and filter.dat. For example xfilter is an MA(5).
Say x has 100 data points. Say xfilter has 95 data points. How do I tell GnuPlot to shift the plot to the right on the filter so that I can see one signal ontop of the other starting from the correct place?
The two signals are on disk in their corresponding text file, one column. I have figured out how to plot them just not translated correctly:
This works fine, but filter displays on the plot at the same place to the left as signal, which is wrong.
Is there a way to "pad" filter.dat with five (n) "empty" values so that gnuplot knows to leave those points blank? Or is this done with a command right from gnuplot?
Thanks!
Say x has 100 data points. Say xfilter has 95 data points. How do I tell GnuPlot to shift the plot to the right on the filter so that I can see one signal ontop of the other starting from the correct place?
The two signals are on disk in their corresponding text file, one column. I have figured out how to plot them just not translated correctly:
Code:
gnuplot> plot "signal.dat" title "Signal",\
"filter.dat" title "Filter"
This works fine, but filter displays on the plot at the same place to the left as signal, which is wrong.
Is there a way to "pad" filter.dat with five (n) "empty" values so that gnuplot knows to leave those points blank? Or is this done with a command right from gnuplot?
Thanks!