Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

LayerSizeFunction

LayerSizeFunction
is an option for TreePlot that gives a function to specify the relative height to allow for each layer.
  • LayerSizeFunction->f specifies that the difference of coordinates between layer n and layer n+1 should be proportional to f[n].
  • The root or top vertices are taken to be at layer 1.
Draw a tree with the first level of height 1, second 2:
Plot a binary tree with random layer size:
Draw a tree with the first level of height 1, second 2:
In[1]:=
Click for copyable input
Out[1]=
Plot a binary tree with random layer size:
In[2]:=
Click for copyable input
Out[2]=
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team