#!/usr/bin/env gnuplot

set terminal pdf enhanced color size 12cm,8cm font "Helvetica,18"

set output "var_layers.pdf"
set logscale
set title "(b) Layered domain (variable number of layers)"
set xrange [1:17000]
set xlabel "Number of layers"
set ylabel "Running time (s)"
set format y "10^{%L}"
set key noinvert autotitle columnhead
set style fill transparent solid 0.2 noborder
plot for [i=2:*:2] 'var_layers.graph.csv' using 1:(column(i)/1000) with linespoints lw 2 lt i, \
     for [i=2:*:2] '' using 1:((column(i)+column(i+1))/1000):((column(i)-column(i+1))/1000) with filledcurves lt i notitle
