From c3243659c816ff9adc31543f09de8f1fd02b2245 Mon Sep 17 00:00:00 2001 From: Max Ehrlich Date: Fri, 7 Dec 2018 16:40:13 -0500 Subject: [PATCH] Factor out common settings --- paper/plots/common.gp | 17 +++++++++++++++++ paper/plots/relu_accuracy.gp | 26 +++++++------------------- 2 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 paper/plots/common.gp diff --git a/paper/plots/common.gp b/paper/plots/common.gp new file mode 100644 index 0000000..2627411 --- /dev/null +++ b/paper/plots/common.gp @@ -0,0 +1,17 @@ +set terminal postscript enhanced color font "Helvetica, 30" eps +set size 3,2 + +set palette rgb 33,13,10 +apx_color = 0.1 +asm_color = 0.5 + +set datafile separator ',' + +set grid ytics + +set key autotitle columnhead + +unset colorbox + +set key tmargin horizontal +set key above vertical maxrows 3 \ No newline at end of file diff --git a/paper/plots/relu_accuracy.gp b/paper/plots/relu_accuracy.gp index c5fe496..865b383 100755 --- a/paper/plots/relu_accuracy.gp +++ b/paper/plots/relu_accuracy.gp @@ -1,16 +1,8 @@ #!/usr/bin/gnuplot -c -set terminal postscript enhanced color font "Helvetica, 30" eps -set size 3,2 - -set datafile separator ',' +load "common.gp" set ylabel 'Average Accuracy (%)' -set grid ytics - -set key tmargin horizontal -set key above vertical maxrows 3 - set xlabel 'Number of Spatial Frequencies' set xrange ['1':'15'] @@ -18,14 +10,10 @@ set xtics 1 set output "relu_accuracy.eps" -unset colorbox -unset colorbox -set palette rgb 33,13,10 - -plot "data/MNIST_relu_accuracy.csv" using ($0+1):1 with lines linewidth 8 dashtype 2 palette frac 0.20 title (columnhead(1)." MNIST"), \ - "data/CIFAR10_relu_accuracy.csv" using ($0+1):1 with lines linewidth 8 dashtype 2 palette frac 0.75 title (columnhead(1)." CIFAR10"), \ - "data/MNIST_relu_accuracy.csv" using ($0+1):2 with linespoints linewidth 8 pointsize 5 pointtype 6 palette frac 0.28 title (columnhead(2)." MNIST"), \ - "data/CIFAR10_relu_accuracy.csv" using ($0+1):2 with linespoints linewidth 8 pointsize 5 pointtype 6 palette frac 0.8 title (columnhead(2)." CIFAR10"), \ - "data/MNIST_relu_accuracy.csv" using ($0+1):3 with linespoints linewidth 8 pointsize 5 pointtype 4 palette frac 0.40 title (columnhead(3)." MNIST"), \ - "data/CIFAR10_relu_accuracy.csv" using ($0+1):3 with linespoints linewidth 8 pointsize 5 pointtype 4 palette frac 0.95 title (columnhead(3)." CIFAR10") +plot "data/MNIST_relu_accuracy.csv" using ($0+1):1 with lines linewidth 8 dashtype 2 linetype rgb "black" notitle, \ + "data/CIFAR10_relu_accuracy.csv" using ($0+1):1 with lines linewidth 8 dashtype 2 linetype rgb "black" notitle, \ + "data/MNIST_relu_accuracy.csv" using ($0+1):2 with linespoints linewidth 8 pointsize 4 pointtype 7 palette frac asm_color title (columnhead(2)." MNIST"), \ + "data/CIFAR10_relu_accuracy.csv" using ($0+1):2 with linespoints linewidth 8 pointsize 5 pointtype 9 palette frac asm_color title (columnhead(2)." CIFAR10"), \ + "data/MNIST_relu_accuracy.csv" using ($0+1):3 with linespoints linewidth 8 pointsize 4 pointtype 7 palette frac apx_color title (columnhead(3)." MNIST"), \ + "data/CIFAR10_relu_accuracy.csv" using ($0+1):3 with linespoints linewidth 8 pointsize 5 pointtype 9 palette frac apx_color title (columnhead(3)." CIFAR10") -- GitLab