# Looking for a library to make tree plots

**URL:** https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393
**Category:** Libraries
**Created:** [December 7, 2018, 1:01pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393 "2018-12-07T13:01:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [December 7, 2018, 1:01pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/1 "2018-12-07T13:01:39Z")

</div>

Hi,

Do you know if there’s a Processing library to make node-based tree graphs (other than the [correlation library](http://www.muehlseife.de/correlations-library/) that is unfortunaltely not P3 compatible) ?

Thanks.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 7, 2018, 4:25pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/2 "2018-12-07T16:25:22Z")

</div>

> [@solub](#):
>
> (other than the [correlation library](http://www.muehlseife.de/correlations-library/) that is unfortunaltely not P3 compatible)?

Have you already tried to contact them by e-mail or Facebook for its source code? 🥺

---

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [December 7, 2018, 4:43pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/3 "2018-12-07T16:43:32Z")

</div>

No, I did not. Should I ?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 7, 2018, 4:58pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/4 "2018-12-07T16:58:32Z")

</div>

> [@solub](#):
>
> Should I?

There’s a high probability that converting that library to Processing 3.4 would be just some little fixes here and there. Nothing too complicated! 😇

So it’s worth a try to get ahold of the source code IMO. 😹

---

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [December 7, 2018, 5:20pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/5 "2018-12-07T17:20:38Z")

</div>

I see. But I guess it would be more about requesting permission rather than asking for the source code since we already have the possibility to access it (with a Java decompiler like JD-GUI for instance). Right ?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 7, 2018, 5:23pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/6 "2018-12-07T17:23:48Z")

</div>

> [@solub](#):
>
> (with a Java decompiler like JD-GUI for instance).

W/ a decompiler, everything would be a mess, b/c all labels for variables, methods, etc. would be lost! 🤢

---

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [December 7, 2018, 5:25pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/7 "2018-12-07T17:25:32Z")

</div>

Ok, I’ll give it a shot (contacting them).

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [December 19, 2018, 10:18pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393/8 "2018-12-19T22:18:10Z")

</div>

Ah, I remember looking at Correlations [a while back](https://forum.processing.org/two/discussion/18694/correlations-library).

The strange thing is, I think Correlations was originally distributed with the source code. From the old (broken) blog post:

[http://mstest1234.blogspot.com/](http://mstest1234.blogspot.com/)

> You can download the library package **including the source code** and 3 Processing examples [here](http://www.4dcube.de/muehlseife/correlations/distribution/correlations-alpha%200.4/download/correlations-alpha%200.4.zip).

The later reposting to [correlations library |](http://www.muehlseife.de/correlations-library/) has the jar and examples, but does not include the source code, even though it is the same version number.

I’ve quickly looked inside the class files with [http://www.javadecompilers.com/](http://www.javadecompilers.com/) using the CFR decompiler, and most of the decompile is pretty clean (although a few key parts of Node.java and Graph.java are quite messy). I’ve never actually used it for a project – instead I have used GraphStream.
