Credits | Overview | Plotting Styles | Commands | Terminals |
---|
The offset value modifies any of the with hsteps variants by adding an increment to the y value of both the data point itself (column 2) and the baseline of the plot it appears in. An example of use is to draw a logic circuit timing chart in which pulse waveforms are aligned vertically. In general the offset can be used to stack plots from multiple data sets that share a common range of y values.
# bit(k,char) is a function that returns 0 or 1 # for the state of bit k in an ASCII character set style fill solid 0.2 border plot for [k=1:8] STR using 1:(bit(k,STR[$1])):(0.5) \ with hsteps fillcolor "black" offset k