File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1614,6 +1614,10 @@ class SvgTree(SvgAxisPlot):
1614
1614
PolytomyLine = collections .namedtuple (
1615
1615
"PolytomyLine" , "num_branches, num_samples, line_pos"
1616
1616
)
1617
+ margin_left = 20
1618
+ margin_right = 20
1619
+ margin_top = 10 # oldest point is line_height below or 2*line_height if title given
1620
+ margin_bottom = 15 # youngest plot points are line_height above this bottom margin
1617
1621
1618
1622
def __init__ (
1619
1623
self ,
@@ -1821,10 +1825,10 @@ def __init__(
1821
1825
add_class (self .mutation_label_attrs [m ], "lab" )
1822
1826
1823
1827
self .set_spacing (
1824
- top = 10 if title is None else 10 + self .line_height ,
1825
- left = 20 ,
1826
- bottom = 15 ,
1827
- right = 20 ,
1828
+ top = self . margin_top + ( 0 if title is None else self .line_height ) ,
1829
+ left = self . margin_left ,
1830
+ bottom = self . margin_bottom ,
1831
+ right = self . margin_right ,
1828
1832
)
1829
1833
if title is not None :
1830
1834
self .add_text_in_group (
You can’t perform that action at this time.
0 commit comments