# -*- mode: gnuplot; -*- # Copyright (C) 2020 Bhavin Gandhi # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # References: # https://raymii.org/s/tutorials/GNUplot_tips_for_nice_looking_charts_from_a_CSV_file.html # https://riptutorial.com/gnuplot/example/12382/plot-a-single-data-file set xdata time set timefmt "%Y-%m-%d" set format x "%d %b" set title "Dvorak layout progress" set key autotitle columnhead set ylabel "Words per minute" set xlabel "Time" set grid back set style line 101 linewidth 2 linecolor rgb "red" # Klavaro statistics file: ~/.local/share/klavaro/stat_velo.txt plot "stat_velo.txt" \ using 4:2 smooth unique with lines linestyle 101 title "Speed" \ # , '' using 4:2 with points