I am plotting sin wave in gnu-plot and taking values of x-axis in milliseconds.
I have been using this code:
set timefmt "%S"
set format x "%.3S"
The graph that I got is like this:
but i want to show the x-axis ticks as 0,5,10 instead of 0.005, .015. How can i do that?
Best How To :
%S format is only for time data, the
set timefmt applies only when reading in a data set. Basically the x-values are just numbers, you give them a unit and a meaning.
So, if you want to plot
3*sin(100*pi*x) (with x being seconds), but want to have the xrange given in milliseconds you must replace
plot 3*sin(x * 10.0/pi)