I am trying to make a plot with values on the x axis ranging from 0 to 2 ms. I want to show a tick every .1 ms, with the labels going from 0.0, 0.1, ... up to 1.9, 2.0. I don't want to show the power at each tick, because I label the axis in ms, not in seconds. My data is given in seconds.
I can make this work using ($1*1000) to manually multiply the value by 1000
plot 'data.txt' using ($1*1000.0):3 w l lw 2
This does work. However, that method means I have to edit all my plots, which there are quite a few of. Also if I decide to change it later, I have to change all of them again. I would much rather make these settings in one config file.
I tried using the format specifier, e.g.
set format x "%1.1s"
But unfortunately I can't figure out how to specify a fixed power of 10 for it to use. The labels I get now are 0.0, 1.0, 2.0, ..., 9.0, 1.0, 1.1, ..., etc., instead of 0.0, 0.1, 0.2, etc.
What is the best way to do this?