Re: [graphviz-interest] Dendrograms/Cladograms
Ron Savage <[email protected]> Mon, 28 Dec 2015 08:22:45 +1100
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
Hi Hermann On 27/12/15 22:09, [email protected] wrote: > Hi Ron, > > the ASCII layouts do not look nice for me. > But thanks to the given URLs I modified them ([1],[2]). Thanx for the effort. I see you've vertically aligned the names. It looks good, but I fear there has been a misunderstanding. The ASCII diagrams were just to help me perfect the user-friendly file format I designed so both people preparing such files find them easy, and I find it easy to parse such files. Here again are the *.clad files: Parent Place Node root above Beetles root below 1 1 above Wasps, bees, ants 1 below 2 2 above Butterflies, moths 2 below Flies Parent Place Node root above Archaeopterix lithographica root below 1 1 above Apsaravis ukhaana 1 below 2 2 above Gansus yumemensis 2 below 3 3 above Ichthyornis dispar 3 below 4 4 above 5 4 below 6 5 above Gallus gallus 5 below Anas clypeata 6 above Pasquiaornis 6 below 7 7 above Enaliornis 7 below 8 8 above Baptornis advenus 8 below 9 9 above 10 9 below 11 10 above Brodavis varnei 10 below Brodavis baileyi 11 above Fumicollis hoffmani 11 below 12 12 above Parahesperornis alexi 12 below Hesperornis regalis As for the JSON, I would never impose on my users the requirement of having to type in something like that. I do admit the JSON is easier to get right than YAML, but since we're talking about something a human has to type, my one-and-only concern is ease of use. It's only after a program has parsed such data that the programmer can produce versions of the file in various formats. And yes, I do use JSON, but only where I can call a library module (in Perl) from one of my CGI scripts (also in Perl, based on Mojolicious), to turn a data structure into JSON so when that data is sent to the web client (typically a browser [*]), the data structure can be easily decoded by Javascript. [*] Just for the record, some web clients are not browsers. In fact millions of them are not browsers. I have finished the parser, and almost finished the whole program. Progress is here: http://savage.net.au/misc/wikipedia.01.png http://savage.net.au/misc/nationalgeographic.01.png Ignore the fuschia boxes. They are just inserted to make it easy for me to deal with the remaining problem of overlapping text. As you can see, I've figured out how to shift the text when it overlaps, but I have not yet shifted the corresponding connecting lines. Hey! It's only 8:17 am here now. I'll update the images during the day. And the scaffolding nodes, whose names are digits, will obviously be suppressed later. The output you see is generated purely by default options within the program. There are almost a dozen options so far. All the user has to do is provide the *.clad files above. Simple! -- Ron Savage - savage.net.au _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest