Skip to content

Leaf label Decoration

Overview

Leaf decorations are colour objects / shapes to be shown between the leaf node labels and branches:

Tree:

(A:0.1,(B:0.2,(C:0.3,D:0.4)100:0.05)100:0.1)90:0.43;

the dataset:

Placeholder

!defaultstrokewidth	0.7
A	triangle,red:red
B	triangle,white:red
C	triangle,white:green
D	triangle,green:green

A decoration shape can be written as :

shape,fill_color[:stroke_color](_stroke_color)
Tip
  1. Leaf label can have multiple decoration shapes, but only one decoration dataset can be shown at a time
  2. Leaf labels can have different numbers of colour shapes; see more examples bellow.

Here is an annotated example of the dataset:

Placeholder

Supported Shapes
triangle
circle
rect
star
check

Supported modifiers

!defaultstrokewidth	0.7
Example

Example 1

Placeholder

!defaultstrokewidth	0.7
A	star,red
B	rect,red	check,green
C	star,white:red	triangle,white:green
D	circle,white:green

Add leaf label decoration to collapsed trees

Evolview supports collapsing at internal nodes; collapsed nodes are treated as leaf nodes. It is therefore very straightforward to add leaf label decorations to a collapsed tree. See here for more information.