In ecology, measurements of abundance made along a transect are often represented on kite diagrams. Essentially, these are line graphs, in which each line is translated vertically so that it does not overlap the others, and reflected in its x-axis. The space between the reflections is then shaded.
Unfortunately, these are awkward to draw by hand. They are frequently plotted on graph paper in its landscape orientation, requiring that several sheets be stuck together in order to represent the full set of measurements. This is messy, and results in a low information density. Consequently, it is desirable to produce kite diagrams with a computer, rather than ruler and pen. Some suitable software exists, but mostly as plugins for Excel (EasyStats, Merlin), a proprietary software package with a long history of computational errors and inadequacies.
I therefore wrote my own program to draw kite diagrams. It accepts the name of a CSV file as its only argument. The first line of this file is a header specifying the labels to print at each tick on the x-axis. Subsequent lines consist of a species name, then list of measurements. Output is written to a file as postscript.
Example input file:
Sea pink, 0,0,0,0,3,0,0,6,6,3,0,0,8,22,0,0,0
The perl script can be downloaded here. After downloading, change the extension from .txt to .pl .