2
$\begingroup$

This is a basic question I am sure, but cannot seem to find the answer in the documentation. Does anyone know how to add a title to a TreePlot?

$\endgroup$
  • $\begingroup$ PlotLabel -> "title"? $\endgroup$ – Algohi Feb 16 '15 at 17:31
3
$\begingroup$

All plotting functions (i.e. functions that return Graphics) and all functions that create Graph objects take the PlotLabel option.

Use

TreePlot[..., PlotLabel -> "My Tree!"]

It might be useful to mention that Show will convert Graph objects to Graphics objects, in case you need to use options that are only available for Graphics, but not Graph.

Finally, you can use Labeled to label anything in Mathematica, whether it's graphics, a graph, a formula, or anything else.

$\endgroup$
  • 1
    $\begingroup$ The Show comment is good to know indeed. $\endgroup$ – chris Mar 18 '15 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.