Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 1998 20:42:24 -0700
From:      Josef Grosch <jgrosch@mooseriver.com>
To:        Wolfram Schneider <wosch@panke.de.freebsd.org>, freebsd-advocacy@FreeBSD.ORG
Cc:        advocacy@FreeBSD.ORG
Subject:   Re: plotting software
Message-ID:  <19980904204224.A29968@mooseriver.com>
In-Reply-To: <19980905000033.C243@panke.de>; from Wolfram Schneider on Sat, Sep 05, 1998 at 12:00:33AM %2B0200
References:  <19980903232041.A1228@panke.de> <19980904094702.A14622@mooseriver.com> <19980905000033.C243@panke.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 05, 1998 at 12:00:33AM +0200, Wolfram Schneider wrote:
> On 1998-09-04 09:47:02 -0700, Josef Grosch wrote:
> > On Thu, Sep 03, 1998 at 11:20:41PM +0200, Wolfram Schneider wrote:
> > > I setup scripts which create a daily snapshot of the
> > > FreeBSD release usage from the web log files.
> > > 
> > > The ascii output is available at 
> > > http://www.freebsd.org/statistic/release_usage/1998/
> > > 
> > > I don't have the time to create graphical output.
> > > Does someone know a good plotting software and 
> > > can write the batch scripts?
> > 
> > Have you looked at gnuplot ? We have it in our package collection.
> 
> gnuplot is good for mathematical functions. I don't know
> how good it is for graphics and diagrams. For example,
> a simple ascii art figure:
> 
> 
> %
> 
> 40 ///////// 
>            ///
>              ///
> 30              ///                     ::::::::
>                    ////:::::::::::::::::
> 20                    : /////////////////////////  
>                    :::
>                   :
> 10 +++++++++++++++++++++++++++++++++++++++++++++
> 7  *********************************************
>                  :
> --------------------------------------------------------------------
>    1. Aug           15.Aug               30. Aug
> 
> * 3.0-current
> + 2.7-stable
> / 2.2.6R
> : 2.2.7R

Enclosed is a shar file which will demo what is posible with gnuplot

Enjoy!


Josef

--------------------ENCLOSED-----------------ENCLOSED-----------------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pop.plot
#	population.data
#
echo x - pop.plot
sed 's/^X//' >pop.plot << 'END-of-pop.plot'
X#!/usr/local/bin/perl
X
X# $Id: pop.plot,v 1.2 1998/09/05 03:38:04 jgrosch Exp $
X
Xset title "Federal Prison Population"
Xset xlabel "Year"
Xset ylabel "Population"
Xset key
Xset grid
Xset xtics ("1970" 0, "1975" 5, "1980" 10, "1985" 15, "1990" 20, "1995" 25)
X
Xplot "population.data" using 3 t "total" with linespoints, \
X    "population.data" using 4 t "drug" with linespoints, \
X    "population.data" using 6 t "non-drug" with linespoints
X
Xpause -1
X
Xplot "population.data" using 4 t "drug" with linespoints, \
X    "population.data" using 6 t "non-drug" with linespoints
X
Xpause -1
X
Xplot "population.data" using 5 t "percentage" with linespoints
END-of-pop.plot
echo x - population.data
sed 's/^X//' >population.data << 'END-of-population.data'
X#
X# $Id: population.data,v 1.3 1998/09/05 03:38:59 jgrosch Exp $
X#
X# column 1 - year
X# column 2 - total in custody
X# column 3 - total sentenced
X# column 4 - total drug offenders
X# column 5 - percentage drug offenders
X# column 5 - non-drug offenders
X#
X1970 21266 20686 3384 16.3 17302
X1971 20891 20529 3495 7.0 17034
X1972 22090 20729 3523 16.9 17206
X1973 23336 22038 5652 25.6 16386
X1974 23690 21769 6203 28.4 15566
X1975 23566 20692 5540 26.7 15152
X1976 27033 24135 6425 26.6 17710
X1977 29877 25673 6743 26.2 18930
X1978 27674 23501 5981 25.4 17520
X1979 24810 21539 5468 25.3 16071
X1980 24252 19023 4749 24.9 14274
X1981 26195 19765 5076 25.6 14689
X1982 28133 20938 5518 26.3 15420
X1983 30214 26027 7201 27.6 18826
X1984 32317 27622 8152 29.5 19470
X1985 36042 27623 9491 34.3 18132
X1986 40505 31831 12119 38.1 19712
X1987 43683 34163 14354 42.0 19809
X1988 43401 34680 15526 44.8 19154
X1989 50173 38969 19459 49.9 19510
X1990 57331 47847 25037 52.3 22810
X1991 63711 53526 30498 57.0 23028
X1992 70346 61026 36349 59.6 24677
X1993 79483 70557 42945 60.9 27612
X1994 85290 76186 46743 61.4 29443
X1995 89564 79347 48118 60.6 31229
X1996 94215 83515 50754 60.8 32761
END-of-population.data
exit


--------------------ENCLOSED-----------------ENCLOSED-----------------------


-- 
Josef Grosch           | Another day closer to a |    FreeBSD 2.2.7
jgrosch@MooseRiver.com |   Micro$oft free world  | UNIX for the masses


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-advocacy" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980904204224.A29968>