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:

undesired output

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:

desired output

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

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -