Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2138
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2013-10-11 08:12 -0700 |
| References | (5 earlier) <l35lg6$1qc$1@news.rz.uni-karlsruhe.de> <2121c7cf-e691-48c2-bd54-1ada50f3372f@googlegroups.com> <2d8e079f-e709-4122-ad24-90dd67b6c153@googlegroups.com> <91d8095a-5a86-48ca-97be-b3b79d22232d@googlegroups.com> <l38dj7$51u$1@news.rz.uni-karlsruhe.de> |
| Message-ID | <48dde980-6bd1-40d9-99fe-2fd4b4863ee6@googlegroups.com> (permalink) |
| Subject | Re: graph from the string/numeric column. |
| From | thesunshine99@gmail.com |
On Friday, October 11, 2013 3:41:10 AM UTC-5, Karl wrote:
> Am 10.10.2013 22:53, schrieb thesunshine99@gmail.com:
>
> >
>
> > col3 represent the varying degree of the data points in the graphs which should be in the line format with different color represent each server.
>
> >
>
> > S
>
> >
>
>
>
> You can do
>
>
>
> .. using timecolumn(4) : ($1 eq "server1" ? $2 : 1/0)
>
>
>
> to only plot those lines refering to "server1", and then replot with
>
> "server2" (see also "help ternary")
>
> You´ll also have to set the right time/date format, the help on
>
> "timecolumn" points you to the right places.
>
>
>
> K
I have tried with this set of data but no luck so far.
cat /tmp/_pp
server1 35000 105 09-26-13
server1 35000 105 09-27-13
server1 35000 280 09-28-13
server1 35000 280 10-01-13
server1 35000 280 10-02-13
server1 35000 420 10-05-13
server1 35000 420 10-06-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
for server_name in `awk ' { print $1 }' /tmp/_pp | sort | uniq| sed '/^$/d'`
do
cat << EOF | /usr/local/bin/gnuplot
set terminal postscript eps enhanced color
set output "/tmp/tt.ps"
set autoscale
set grid
set title " Usage"
set xlabel " Date"
set ylabel "GB"
set yr [0:$maxsize]
set key off
set xr [-1:]
set xtics nomirror rotate by -90 font ",16"
set xdata time
set timefmt "%m-%d-%y"
set format x "%m/%d"
plot "/tmp/_pp" every :1 using 4:((strcol(1) eq "$server_name")?3:1/0)
EOF
done
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-08 13:42 -0700
Re: graph from the string/numeric column. Karl <mail.kfr@gmx.net> - 2013-10-09 10:24 +0200
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-09 07:27 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-09 08:25 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-09 09:26 -0700
Re: graph from the string/numeric column. Karl <mail.kfr@gmx.net> - 2013-10-10 09:37 +0200
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-10 12:41 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-10 13:33 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-10 13:53 -0700
Re: graph from the string/numeric column. Karl <mail.kfr@gmx.net> - 2013-10-11 10:41 +0200
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-11 08:12 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-11 13:22 -0700
Re: graph from the string/numeric column. Karl <mail.kfr@gmx.net> - 2013-10-14 14:39 +0200
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-14 10:07 -0700
Re: graph from the string/numeric column. Karl <mail.kfr@gmx.net> - 2013-10-16 18:59 +0200
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-16 21:42 -0700
Re: graph from the string/numeric column. Karl <ratzsch@polymer.uka.de> - 2013-10-20 09:48 +0200
Re: graph from the string/numeric column. sfeam <sfeam@users.sourceforge.net> - 2013-10-20 12:08 -0700
Re: graph from the string/numeric column. thesunshine99@gmail.com - 2013-10-21 11:02 -0700
csiph-web