C++ Source for an Example of drawing a binary tree with 12 samples. An answer question on Quora, which made a good example.
I'll be adding more binary tree functions as I work on Sagebox, but this is a good example of how to create a tree display for general purpose. An addition would be to size each node level to remove whitespace.