This is a perl module for reading treefiles in the phylip format and generating PNG files with a graphical representation of the tree. It requires the GD.pm perl module for graphics drawing by Lincoln Stein. There is also an example script demonstrating its use. Click on the figure below to see an example output which makes use of all the features.
The module has a routine called ReadTree which reads the tree into two hash arrays. The first describes the tree by having a key for each node, where the value is the node above it in the tree. The second is the x-axis position of each node which gives the branch lengths.
There is also a drawing routine. In its simplest form the program merely draws a simple tree, with the user specifying the width and size of the image and the branches. It is possible however using hash arrays to specify two widths for each individual branch (one is grey, see example) and also multi-line labels for each node. There is in addition to this an extra label for each final member.