This shows you the differences between two versions of the page.
ep:labs:061:contents:tutorial:ex3 [2019/11/18 06:14] andreea.alistar [03. [1.5p] Time-based data when plotting in gnuplot] |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== 03. [1.5p] Time-based data when plotting in gnuplot ==== | ||
- | **timecolumn()** function parses a time string from a column according to the set timefmt settings. The result is a time stamp in seconds. | ||
- | |||
- | <code> | ||
- | set xdata time set timefmt "%H:%S" | ||
- | set format x "%H" | ||
- | set style fill solid 0.6 border -1 | ||
- | set boxwidth 0.3 relative | ||
- | set xrange["00:00":"23:30"] | ||
- | set style data boxes plot 'dataset.dat' using 1:2, \ '' using (timecolumn(1)+60*20):($2*0.5), \ '' using (timecolumn(1)+60*40):($2*0.7) | ||
- | </code> |