X-Received: by 10.68.212.130 with SMTP id nk2mr5158698pbc.1.1381437229427; Thu, 10 Oct 2013 13:33:49 -0700 (PDT) X-Received: by 10.49.119.196 with SMTP id kw4mr89312qeb.23.1381437229375; Thu, 10 Oct 2013 13:33:49 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!z6no50522185pbz.1!news-out.google.com!9ni27135qaf.0!nntp.google.com!i2no5027576qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Thu, 10 Oct 2013 13:33:49 -0700 (PDT) In-Reply-To: <2121c7cf-e691-48c2-bd54-1ada50f3372f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=17.102.94.57; posting-account=c3soXwoAAAAtoNLszO5J5dxDbpVkyNGj NNTP-Posting-Host: 17.102.94.57 References: <54e6d656-8116-4125-84be-8851fbf84787@googlegroups.com> <2a8e5871-f2b2-48de-9955-e928e71c91fd@googlegroups.com> <2abb3c8a-38c8-4b15-a28d-166a06293a72@googlegroups.com> <2121c7cf-e691-48c2-bd54-1ada50f3372f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2d8e079f-e709-4122-ad24-90dd67b6c153@googlegroups.com> Subject: Re: graph from the string/numeric column. From: thesunshine99@gmail.com Injection-Date: Thu, 10 Oct 2013 20:33:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.graphics.apps.gnuplot:2133 On Thursday, October 10, 2013 2:41:10 PM UTC-5, thesun...@gmail.com wrote: > On Thursday, October 10, 2013 2:37:47 AM UTC-5, Karl wrote: > > > Am 09.10.2013 18:26, schrieb thesunshine99@gmail.com: > > > > > > > > > > > > > > plot for [COL=2:10] '/tmp/_pp' using COL > > > > > > > > > > > > > > > > > > (Why the histogram?) > > > > > > > > > > > > You can use the line numbers as abscissa values, > > > > > > > > > > > > > > > > > > plot for [COL=2:10] "" using 0:COL:xticlab(1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Karl > > > > Its perfect Karl. I appreciate your help. There wasn't any reason for the histogram. I couldn't figure out which type of the graph to use so I stumbled on the histogram. > > > > cat << EOF | /usr/local/bin/gnuplot > > set terminal postscript eps enhanced color > > set output "/tmp/abc.ps" > > set autoscale > > set grid > > set title "Usage" > > set xlabel "Numbers" > > set ylabel "GB" > > set yr [0:] > > set key off > > set xr [-1:] > > set xtics nomirror rotate by -90 font ",16" > > plot for [COL=2:$maxnoofcol] '/tmp/p' using 0:COL:xticlab(1) lw 5 > > > > EOF Now if I have to change the data a bit. I have added two more columns with date in it. X axis should be date. Y axis should be the col2 ( as size) and line inside the graph should represent the each server with different color with legends. server1 35000 105 09-26-13 server1 35000 105 09-27-13 server1 35000 280 09-28-13 server1 35000 280 09-29-13 server1 35000 280 09-30-13 server1 35000 280 10-01-13 server1 35000 280 10-02-13 server1 35000 280 10-03-13 server1 35000 280 10-04-13 server1 35000 420 10-05-13 server1 35000 420 10-06-13 server1 35000 420 10-07-13 server1 35000 420 10-08-13 server1 35000 420 10-09-13 server1 35000 420 10-10-13 server2 49000 0 09-26-13 server2 49000 0 09-27-13 server2 49000 0 09-28-13 server2 49000 0 09-29-13 server2 49000 0 09-30-13 server2 49000 0 10-01-13 server2 49000 0 10-02-13 server2 49000 0 10-03-13 server2 49000 0 10-04-13 server2 49000 0 10-05-13 server2 49000 0 10-06-13 server2 49000 0 10-07-13 server2 49000 0 10-08-13 server2 49000 0 10-09-13 server2 49000 0 10-10-13 server3 49000 1372 09-26-13 server3 49000 1372 09-27-13 server3 49000 1372 09-28-13 server3 49000 1372 09-29-13 server3 49000 1372 09-30-13 server3 49000 1372 10-01-13 server3 49000 1372 10-02-13 server3 49000 1372 10-03-13 server3 49000 1372 10-04-13 server3 49000 1372 10-05-13 server3 49000 1372 10-06-13 server3 49000 8967 10-08-13 server3 49000 8967 10-09-13 server3 49000 8967 10-10-13 server3 49000 9016 10-07-13 server4 49000 0 09-26-13 server4 49000 0 09-27-13 server4 49000 0 09-28-13 server4 49000 0 09-29-13 server4 49000 0 09-30-13 server4 49000 0 10-01-13 server4 49000 0 10-02-13 server4 49000 0 10-03-13 server4 49000 0 10-04-13 server4 49000 0 10-05-13