From c2952852d4336e82fcd434b0f09a9b5d264d4dc9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 5 Dec 2021 11:54:33 +0100 Subject: [PATCH] memleak: Fix terminals, use SVG by default. --- memleak/memory-consumption-over-time.gp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/memleak/memory-consumption-over-time.gp b/memleak/memory-consumption-over-time.gp index 20afc61..e0ab6cf 100755 --- a/memleak/memory-consumption-over-time.gp +++ b/memleak/memory-consumption-over-time.gp @@ -23,7 +23,7 @@ if (ARGC > 1) { set title sprintf('%s memory consumption over time', myprog) set key left top set xlabel 'Time (Hours)' -set ylabel 'MiB (USS \& PSS)' +set ylabel 'MiB (USS, PSS)' set y2label 'MiB (RSS)' textcolor 'dark-orange' set xdata time @@ -37,15 +37,18 @@ set ytics 10 nomirror # 1 tic every 10 MiB. set mytics 2 # 1 mtic every 5 MiB. set y2tics 10 nomirror textcolor 'dark-orange' set my2tics 2 -set grid xtics ytics mxtics mytics lc "gray50",lc "gray" +set grid xtics ytics mxtics mytics lc "gray50" lw 0.75, lc "gray" lw 0.5 +# myfont = "Source Sans Pro,12" -myfont = "Source Sans Pro,12" -# set terminal qt enhanced font myfont -# set terminal svg enhanced background rgb 'white' size 1200,900 dynamic font myfont +# set terminal qt enhanced size 1200,900 font myfont + +# set terminal png enhanced notransparent size 1200,900 font myfont # set output sprintf("%s memory consumption over time.png", myprog) -set terminal png enhanced notransparent size 1200,900 font myfont -set output sprintf("%s memory consumption over time.png", myprog) + +myfont = "Source Sans Pro,16" +set terminal svg enhanced background rgb 'white' size 1200,900 dynamic font myfont +set output sprintf("%s memory consumption over time.svg", myprog) plot infile every 3::0 using ((timecolumn(2) - mystarttime)):($3/1024) title 'USS' \ with linespoints linewidth 2 pointtype 7 pointsize 0.5 linecolor 'dark-violet', \