gnuplot: Same scale for graphs in multiplot -
my datafile looks this:
#lap speed 1 10 1 12 1 15 1 8 1 15 1 10 2 20 2 25 2 15 3 16 3 17 3 16 3 18 (the speed logged @ regular intervals , first number lap/run.)
i want plot speed overlapping line-graphs , each run/lap should own graph.
my script far:
topspeed=30 set multiplot [lap=1:3] { set yrange [0:topspeed] set autoscale fix plot "testdata.txt" using ($1 != lap ? 1/0 : $2) lines title "speed" } unset multiplot this script outputs:

however lap/run can have different durations , produce variable amount of datapoints.
at moment graphs use own scale , "stretched" same length.
what try archive this:

i think somehow 'xrange' needs set, various attempts "set xrange" & "autoscale" unsuccessful.
don't multiplot, rather 1 plot several lines:
set yrange [0:30] plot [lap=1:3] "testdata.txt" using ($1 != lap ? 1/0 : $2)
Comments
Post a Comment