File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -860,6 +860,8 @@ class SvgPlot:
860
860
861
861
text_height = 14 # May want to calculate this based on a font size
862
862
line_height = text_height * 1.2 # allowing padding above and below a line
863
+ default_width = 200 # for a single tree
864
+ default_height = 200
863
865
864
866
def __init__ (
865
867
self ,
@@ -1361,7 +1363,7 @@ def __init__(
1361
1363
use_skipped = np .append (np .diff (self .tree_status & OMIT_MIDDLE == 0 ) == 1 , 0 )
1362
1364
num_plotboxes = np .sum (np .logical_or (use_tree , use_skipped ))
1363
1365
if size is None :
1364
- size = (200 * int (num_plotboxes ), 200 )
1366
+ size = (self . default_width * int (num_plotboxes ), self . default_height )
1365
1367
if max_time is None :
1366
1368
max_time = "ts"
1367
1369
if min_time is None :
@@ -1674,7 +1676,7 @@ def __init__(
1674
1676
stacklevel = 4 ,
1675
1677
)
1676
1678
if size is None :
1677
- size = (200 , 200 )
1679
+ size = (self . default_width , self . default_height )
1678
1680
if symbol_size is None :
1679
1681
symbol_size = 6
1680
1682
self .symbol_size = symbol_size
You can’t perform that action at this time.
0 commit comments