From: nathan Date: Tue, 31 Oct 2006 16:05:11 +0000 (+0000) Subject: b=10959 X-Git-Tag: v1_7_100~404 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2e1d3b168f158cdf774cdd5946977a2c7ba6a5a5 b=10959 r=nathan prettier bar graph --- diff --git a/lustre-iokit/ost-survey/plot-ost.pl b/lustre-iokit/ost-survey/plot-ost.pl index f5bf792..a16a2a1 100755 --- a/lustre-iokit/ost-survey/plot-ost.pl +++ b/lustre-iokit/ost-survey/plot-ost.pl @@ -10,8 +10,9 @@ # # Syntax: # $ plot-ost.pl -# [Note: This script may need modifications whenever there will be -# modifications in output format of ost-survey.pl script.] +# Note: 1. This script may need modifications whenever there will be +# modifications in output format of ost-survey.pl script. +# 2. Gnuplot version 4.0 or above is required. # arg 0 is filename sub usages_msg(){ @@ -70,9 +71,9 @@ open ( SCRFILE, "> $file.scr" ) or die "Can't open scr file for writting"; print SCRFILE "set title \"$GraphTitle[1]\"\n"; print SCRFILE "set xlabel \"OST index\"\n"; print SCRFILE "set ylabel \"MB/s\"\n"; -print SCRFILE "set boxwidth 0.3\n"; -print SCRFILE "plot \"$file.dat\" using 1:2 axes x1y1 title \"Read(MB/s)\" with boxes\n"; -print SCRFILE "replot \"$file.dat\" using 1:3 axes x1y1 title \"Write(MB/s)\" with boxes\n"; +print SCRFILE "set boxwidth 0.2\n"; +print SCRFILE "plot \"$file.dat\" using 1:2 axes x1y1 title \"Read(MB/s)\" with boxes fs solid 0.7\n"; +print SCRFILE "replot \"$file.dat\" using (\$1 + 0.2):3 axes x1y1 title \"Write(MB/s)\" with boxes fs solid 0.7\n"; print SCRFILE "pause -1\n"; close SCRFILE; # invoke gnuplot to display graph.