From 3f0770844e4c6e2ac51d507e38cc13fedfb7ada6 Mon Sep 17 00:00:00 2001 From: Jordi Date: Mon, 22 Jan 2024 14:13:13 +0100 Subject: [PATCH] cosmetics --- ete4/smartview/renderer/drawer.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/ete4/smartview/renderer/drawer.py b/ete4/smartview/renderer/drawer.py index 01bcdd3e8..619f083cf 100644 --- a/ete4/smartview/renderer/drawer.py +++ b/ete4/smartview/renderer/drawer.py @@ -24,15 +24,15 @@ def get_empty_active(): return TreeActive(nodes, clades) -# They are all "generalized coordinates" (can be radius and angle, say). - +# The coordinates (x, y, dx, dy) are all "generalized coordinates" (x and y +# can refer to radius and angle, for example). # The convention for coordinates is: # x increases to the right, y increases to the bottom. # # +-----> x +------. -# | \ a . -# | \ . (the angle thus increases clockwise too) +# | \ . +# | \ . a (the angle thus increases clockwise too) # v y r \. # # This is the convention normally used in computer graphics, including SVGs, @@ -40,15 +40,16 @@ def get_empty_active(): # # The boxes (shapes) we use are: # -# * Rectangle w -# x,y +-----+ so (x,y) is its (left,top) corner -# | | h and (x+w,y+h) its (right,bottom) one -# +-----+ +# * Rectangle w +# x,y +-----+ so (x,y) is its (left,top) corner +# | | h and (x+w,y+h) its (right,bottom) one +# +-----+ # -# * Annular sector r,a .----. -# . dr . so (r,a) is its (inner,smaller-angle) corner -# \ . and (r+dr,a+da) its (outer,bigger-angle) one -# \. da +# * Annular sector dr +# r,a .----. +# . . so (r,a) is its (inner,smaller-angle) corner +# \ . da and (r+dr,a+da) its (outer,bigger-angle) one +# \. # Drawing.