Guest TA: Angela Hardin(hardin@cs.utk.edu).
Write a program data2jgr, which converts data files into
jgraph files. It should expect data files to be in the following
format:
- Heading in all caps.
- List of up to ten entries of the form ``name data''.
- Blank lines
- Repeat
See nldata,
aldata,
and
pgadata for examples of files with the
correct format.
Your job is to write a script using your favorite scripting language
(I used perl, but awk, python and tcl would all work) that creates
bar graphs for each data set. My bar graphs are 1.4 inches by 1 inch,
are separated by 2.1 inches horizontally, and 2.3 inches vertically, and
lay out the graphs in rows with four graphs per row.
See the example output in
nldata.ps,
aldata.ps,
and
pgadata.ps.
Ghostscript and ghostview
Use gs for viewing your plain postscript files. Ghostview
will only work with encapsulated postscript files.
Working Examples
There is a working example in the directory
/home/cs494/labs/Jgraph/programs.
You can run this only on kenner. Also, it creates a postscript file rather
than the jgraph file. Yours should create the jgraph file.