I have a data set that has two tab delimited columns that I plot in a simple XY axis. The independent variable (x axis) is duration in minutes. What I want is to plot this in hours instead of minutes. How would I apply this scaling in gnuplot while plotting?
Share
Have a look at this question; perhaps it will help.
In your case I expect you want something like
These commands tell gnuplot you are providing timedata in the form of minutes,
but you want them displayed with hours and minutes.
EDIT (see comments): (ignoring the time formatting) Scaling the axis of a data file
data.datcan be achieved as follows:The
$1is the column that you want to scale, which you manipulate with maths operations.You usually need to wrap the whole expression in parenthesis before the moving onto other columns.