From 9006242fe820f0299feb1e59d006a45a59e3423c Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 29 Oct 2020 12:33:50 +0100 Subject: [PATCH] Add gnuplot script --- script/plot_datafile.gp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 script/plot_datafile.gp diff --git a/script/plot_datafile.gp b/script/plot_datafile.gp new file mode 100755 index 0000000..87c7391 --- /dev/null +++ b/script/plot_datafile.gp @@ -0,0 +1,17 @@ +# Variables +FILEDATA = ARG1 +PREFIX = 'plot' +EXTENSION = '.png' +OUTPUT = PREFIX.FILEDATA.EXTENSION + +# Parameters +set terminal png size 500,500 +set title FILEDATA +set xlabel 'word' +set ylabel 'ocurrence' +set multiplot + +# Plotting +plot FILEDATA using 1:xtic(2) lt rgb '#6E016B' +set logscale +plot FILEDATA using 1:xtic(2) lt rgb '#41AB5D'