BUILT-IN MATHEMATICA SYMBOL

LayerSizeFunction

LayerSizeFunction
is an option for TreePlot that gives a function to specify the relative height to allow for each layer.

DetailsDetails

  • LayerSizeFunction->f specifies that the difference of coordinates between layer n and layer should be proportional to .
  • The root or top vertices are taken to be at layer 1.
  • With the default setting DataRange->Automatic, LayerSizeFunction is taken to give the actual coordinate difference between layers.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Draw a tree with the first level of height 1, and the second of height 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
New to Mathematica? Find your learning path »
Have a question? Ask support »