From b057262b29ae0ec6e79de7f9b3ca380f94fc385f Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Thu, 31 Mar 2022 11:01:32 +0200 Subject: [PATCH] Remove extra space near titles --- graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.py b/graph.py index f380f93..2ca8859 100644 --- a/graph.py +++ b/graph.py @@ -82,7 +82,7 @@ def fix_size(size): # Plot a single column of values from data.txt def plot(ylabel, title, session, column): g(f"set ylabel '{ylabel}'") - g(f"set title \"\\n{{/:Bold {title}}}\\n\\n\\n\"") + g(f"set title \"{{/:Bold {title}}}\\n\\n\\n\"") g(f"plot '{session}.txt' using 1:{column}:{column} title 'cpu' with boxes palette") @@ -252,7 +252,7 @@ def graph(session, fname='plot.png'): title_specs = f"Total ram: {{/:Bold {TOTAL_RAM}}}, Total disk space: {{/:Bold {TOTAL_FS}}}" title_times = f"Duration: {{/:Bold {START_DATE}}} .. {{/:Bold {END_DATE}}} ({DURATION})" - g(f"set multiplot layout {NUMBER_OF_PLOTS},1 title \"\\n{title_machine}\\n{title_specs}\\n{title_times}\\n\" offset screen -0.475, 0 left tc rgb 'white'") + g(f"set multiplot layout {NUMBER_OF_PLOTS},1 title \"\\n{title_machine}\\n{title_specs}\\n{title_times}\" offset screen -0.475, 0 left tc rgb 'white'") g(f"set title tc rgb 'white' font 'monospace,{fix_size(11)}'")