6
$\begingroup$

In other places on StackExchange, I read: "In versions 12.0, TreePlot is changed substantially, and the legacy TreePlot is available under the name GraphComputation`TreePlotLegacy".

How do I go from this to actually using the legacy package?

Needs["GraphComputation`TreePlotLegacy"] gives an error.

I have a beautiful TreePlot created 6-7 years ago. Doesn't work now.

$\endgroup$
4
  • $\begingroup$ What version are you currently using? This is helpful to us if you can include this information. $\endgroup$ Commented May 29, 2020 at 2:51
  • $\begingroup$ I edited the title, as it was misleading. The question is actually not about packages. This is a built-in function, not part of a package. $\endgroup$
    – Szabolcs
    Commented May 29, 2020 at 6:13
  • 1
    $\begingroup$ Before you start using TreePlotLegacy, check if TreePlot[tree, PlotTheme -> "ClassicDiagram"] works well enough for you (it may or it may not, depending on the specific features of TreePlot you used). $\endgroup$
    – Szabolcs
    Commented May 29, 2020 at 6:14
  • $\begingroup$ To Szabolics: Trying to understand. Is GraphComputation`TreePlotLegacy not to be considered part of package, just a different context in the built-in system? Thanks for your comments so far, helping me. $\endgroup$ Commented May 29, 2020 at 15:48

1 Answer 1

7
$\begingroup$

Just call it like:

GraphComputation`TreePlotLegacy[KaryTree[9, 2]]

Mathematica graphics

$\endgroup$
1
  • $\begingroup$ Just tested. So easy. Thanks very much. Appreciated! Took me a bit to realize that TreePlot had been changed and old options wouldn't work. Could be documented a bit better. But now I can move forward. $\endgroup$ Commented May 29, 2020 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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