bargraph
compile bar graphs into pic input
- Provided by: lmbench-doc (Version: 3.0-a9-1.1ubuntu0.1)
- Source: lmbench
- Report a bug
compile bar graphs into pic input
bargraph [ filename ... ]
bargraph is a perl script which takes a set of Y data with labels and generates a (human readable) pic script that will produce the bar graph. The output (pic input) is commented and is designed such that you should be able to go in and adjust it to fit your document should you need to do so.
The input data format is:
3 foo bar 9 bigger foo "Silly example
with output like
bigger foo +----------+ | | foo | | bar | | +----------+ | | | | | | +----------+ +----------+ ------------------------------- 3 9 Silly example
The following command line options are available
The following may be included in the graph to control the format of the graph. They must be at the beginning of a line and by themselves.
Each datum may be follwed by a fill specifier as follows
3 foo bar %fill.5
Labels may be specified to group a set of data that all have the same data. If a line appears like
%label.5 The foo bar data
then you get a label below the graph.
Make a -horizontal option that prints the graphs the other way.
Hack pick to get access to postscripts stipple patterns.
This isn't done. It isn't integrated with the groff preprocessor yet. It doesn't know about .GS/.GE thingys. I use it to manually generate a pic file and then include that. I have to talk to James to see if he wants it as part of the gpic stuff.