# Plot 16WW modelled DHW diversion per day vs Eddi Export Margin. # Plot various variants and sizes, including a hero image banner. # Intended to be run in directory with output from model run. # Input of form. # ## YEARSTOUSE 2019 2020 2021 # ## MAXDIVERTW 3000 # ## DHWWhPERDAY 4000 # ## STOREMAXWh 7000 # #margin-W year-divert-frac year-divert-daily-kWh MarToSep-divert-frac MarToSep-divert-daily-kWh NovToJan-divert-frac NovToJan-divert-daily-kWh # 0 0.179 2.70 0.219 3.88 0.073 0.31 # 50 0.158 2.63 0.205 3.86 0.045 0.25 # 100 0.151 2.57 0.201 3.83 0.037 0.20 # 150 0.146 2.52 0.199 3.79 0.031 0.16 # MAIN FIGURE FOR DESKTOP, LINEAR SCALE, x1 PIXEL DENSITY # 720x540 is same aspect ratio as 640x480, but scaled for EOU www figure. #set terminal png small size 720,540 set terminal png size 720,540 # 'raw' image should probably be converted with eg zopflipng. set output "daily-diversion-vs-export-margin-linear-720w.raw.png" set title "16WW Modelled Daily DHW Diversion vs Export Margin" #set key off #set key outside #set key right #set key box #set lmargin 1.5 #set lmargin 0 #set rmargin 13.5 #set tmargin 0.5 #set bmargin 1.5 #set grid xtics y2tics #set border 0 #set xrange [0.1:12] set yrange [0:] #set xtics rotate set format y "%gkWh/d" set format x "%gW" #set noytics #unset autoscale y #set y2tics #set format y2 "%gW" #set tics scale 3 plot "run-default-out.txt" \ using 1:3 title "All year" smooth csplines lw 1 lc 1, \ "" using 1:3 notitle with points lc 1, \ "" using 1:7 title "Nov to Jan" smooth csplines lw 1 lc 2, \ "" using 1:7 notitle with points lc 2, \ "" using 1:5 title "Mar to Sep" smooth csplines lw 3 lc 3, \ "" using 1:5 notitle with points lc 3 # Hero image banner. # 800x200 to use as is, visually simplified for small file size. set terminal png size 800,200 set output "daily-diversion-vs-export-margin-linear-banner-800w.raw.png" unset title unset grid unset border set key off set noytics set noxtics plot "run-default-out.txt" \ using 1:3 notitle smooth csplines lw 1 lc 1, \ "" using 1:7 notitle smooth csplines lw 1 lc 2, \ "" using 1:5 notitle smooth csplines lw 3 lc 3