Fri Sep 26 19:49:28 MET DST 1997	Bernhard Reiter

barcharts_via_fig	Version 0.8

Small Awk scripts to postprocess gnuplots "fig" terminal output, 
which you can use to produce barcharts with filled boxes.

This release is terrible beta. It seems that i do not have too
much time writing a real tutorial, therefore it is provided as is.
Of course there is no warranty. This short hack might work for you,
but it also migh fail.

In order to use it, you need an AWK interpreter.(e.g. gawk from GNU.)
Available on almost all platforms. Should already be installed on 
every unix-like system.

And you need TRANSFIG, which comes together with the xfig package.
It is a common package for unix. Note that at the time of writing 
the xfig and transfig version 3.2 (final) have been released. 
(Look an CTAN Server like ftp.dante.de or ftp.x.org ).  
The new version of transfig enables you to create .gif and .jpeg 
images directly. Although xfig is aimed at X11 machines it should be
possible to compile transfig on other platforms like MSDOS using djgpp.
(But i haven`t tried and the makefiles don`t look like this is going to
be easy.)



Have a look in the awk program files, there is some
documentation on usage. And you can quite easily get other colors or patterns
adjusting a few numbers in the files.

-rw-r--r--   1 breiter  syswis    3513 Sep 26 19:46 fill_boxes.awk
-rw-r--r--   1 breiter  syswis    3042 Sep 26 19:47 fill_color_boxes.awk

The former does pattern fills, if "term fig mono" is used. The latter
tries to fill the boxes with color after you have used "term fig color".


This are gnuplot 3.6 scripts. Creating a fig output files, which
easily can be processed by the two scripts.

-rw-r--r--   1 breiter  syswis    1041 Aug  6 14:33 barchart.demo.color.gnuplot
-rw-r--r--   1 breiter  syswis    1023 Jul  3 22:02 barchart.demo.gnuplot


If everything is installed correctly, it should work like this:

	gnuplot barchart.demo.color.gnuplot

	gawk -f fill_color_boxes.awk <barchart.color.org.fig >barchart.color.fig

	fig2dev -L ps barchart.color.fig >barchart.color.eps

I have included "barchart.color.eps" so that you can have a look like it
works for me. :-)

If you like, send me mail.

Enjoy,

	Bernhard Reiter 
breiter@usf.Uni-Osnabrueck.DE
http://www.usf.Uni-Osnabrueck.DE/~breiter/
