From 3026c8a577bdee12c9768e9f034977d7d43cb39b Mon Sep 17 00:00:00 2001 From: Jordi Date: Fri, 17 Jan 2025 00:16:55 +0100 Subject: [PATCH] layout.py: cosmetics Fix the indentation of the example, and the units of the angle- properties (they are given in degrees, not radians). --- ete4/smartview/layout.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ete4/smartview/layout.py b/ete4/smartview/layout.py index 3d6f9d72b..08b952426 100644 --- a/ete4/smartview/layout.py +++ b/ete4/smartview/layout.py @@ -33,23 +33,23 @@ Example of a tree style in use:: my_tree_style = { - 'shape': 'circular', # or 'rectangular' - 'radius': 5, - 'angle-start': -pi/2, - 'angle-end': pi/2, # alternatively we can give 'angle-span' - 'node-height-min': 10, - 'content-height-min': 5, - 'collapsed': {'shape': 'outline', 'fill-opacity': 0.8}, - 'show-popup-props': None, # all defined properties - 'hide-popup-props': ['support'], # except support - 'is-leaf-fn': lambda node: node.level > 4, - 'box': {'fill': 'green', 'opacity': 0.1, 'stroke': 'blue'}, - 'dot': {'shape': 'hexagon', 'fill': 'red'}, - 'hz-line': {'stroke-width': 2}, - 'vt-line': {'stroke': '#ffff00'}, - 'aliases': { - 'support': {'fill': 'green'}, # changes the default one - 'my-leaf': {'fill': 'blue', 'font-weight': 'bold'}, + 'shape': 'circular', # or 'rectangular' + 'radius': 5, + 'angle-start': -180, + 'angle-end': 180, # alternatively we can give 'angle-span' + 'node-height-min': 10, + 'content-height-min': 5, + 'collapsed': {'shape': 'outline', 'fill-opacity': 0.8}, + 'show-popup-props': None, # all defined properties + 'hide-popup-props': ['support'], # except support + 'is-leaf-fn': lambda node: node.level > 4, + 'box': {'fill': 'green', 'opacity': 0.1, 'stroke': 'blue'}, + 'dot': {'shape': 'hexagon', 'fill': 'red'}, + 'hz-line': {'stroke-width': 2}, + 'vt-line': {'stroke': '#ffff00'}, + 'aliases': { + 'support': {'fill': 'green'}, # changes the default one + 'my-leaf': {'fill': 'blue', 'font-weight': 'bold'}, }, }