Skip to content

Instantly share code, notes, and snippets.

@raytry
raytry / disk_write_speed_plot.gp
Last active January 31, 2018 16:40
disk write speed measurement plot for gnuplot
# use this command to make the log:
# while true; do dd if=/dev/zero of=ddfile bs=128k count=128 conv=fdatasync 2>&1 | tail -n1 | tee /dev/stderr | cut -d' ' -f6 >>disk_test.log; rm ddfile; done
# then use this command to plot with gnuplot:
# gnuplot disk_write_speed_plot.gp -p -e 'fn="logfile"'
# Comment the next two lines out and use -p command line option for interactive mode.
set output fn.'.png'
set term pngcairo size 1910,400
@raytry
raytry / vesc_plot.txt
Last active October 5, 2017 22:01
Gnuplot script for Ackmaniac's vesc monitor app logs. "Save GPS position" should be enabled in the config.
# Usage: gnuplot -e 'fn="something_Vesc_Data.csv"' vesc_plot.txt
# or: parallel --eta --gnu gnuplot -e 'fn=\"{}\"' ../vesc_plot.txt ::: *.csv
# Comment the next two lines out and use -p command line option for interactive mode.
set output fn.'.png'
set term pngcairo size 1920,1080
set datafile separator ','
set datafile commentschars '//'
set key autotitle columnhead