Add gnuplot script

This commit is contained in:
coolneng 2020-10-29 12:33:50 +01:00
parent 36f40597dd
commit 9006242fe8
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 17 additions and 0 deletions

17
script/plot_datafile.gp Executable file
View File

@ -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'