slcview allows you to fully script creation of
clustergrams and tree diagrams from .cdt, .gtr,
and .atr files as output by several
biologically-oriented clustering programs, namely
Cluster and XCluster. Many options allow you
control of the output, and, in addition, slcview
allows you to create an annotated legend with the
same scale of colors as used in your clustergram.