From 428b4f6ba681dbb40c8e2213d0c6ae8f8049dcd5 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 31 Jul 2013 12:32:40 +0200 Subject: [PATCH] fio2gnuplot: Adding filename as title for 2D graphs While plotting 2D graphs, it's pretty handy to keep the filename as title for the plotting trace. This way, the png file still keep the original filename used for plotting. --- tools/plot/fio2gnuplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/plot/fio2gnuplot.py b/tools/plot/fio2gnuplot.py index b5f70a09..800c334b 100755 --- a/tools/plot/fio2gnuplot.py +++ b/tools/plot/fio2gnuplot.py @@ -98,7 +98,7 @@ set yrange [0:] smooth_filename = "%s-2Dsmooth" % (png_file) trend_filename = "%s-2Dtrend" % (png_file) avg = average(disk_perf[pos]) - f.write("call \'%s/graph2D.gpm\' \'%s' \'%s\' \'\' \'%s\' \'%s\' \'%s\' \'%s\' \'%f\'\n" % (gpm_dir,title,tmp_filename,raw_filename,mode,smooth_filename,trend_filename,avg)) + f.write("call \'%s/graph2D.gpm\' \'%s' \'%s\' \'%s\' \'%s\' \'%s\' \'%s\' \'%s\' \'%f\'\n" % (gpm_dir,title,tmp_filename,fio_data_file[pos],raw_filename,mode,smooth_filename,trend_filename,avg)) pos = pos +1 # Plotting comparing graphs doesn't have a meaning unless if there is at least 2 traces -- 2.25.1