From: kjvdheide Date: Tue, 28 Nov 2017 18:06:57 +0000 (+0000) Subject: JAL-2844 added offset to x coord to make it equal 0 at the root node X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b35cda14fd0e4963446fdd78ab01b576b457c417;p=jalview.git JAL-2844 added offset to x coord to make it equal 0 at the root node --- diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index e382364..07d45c5 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -241,7 +241,8 @@ public final class JalviewBinding // // System.out.println(relativeTreeWidth); - double threshold = x / longestBranch; + float xRoot = tree.getRoot().getXcoord(); + double threshold = ((double) x - xRoot) / longestBranch; System.out.println(threshold); List foundNodes = getNodesAboveThreshold(threshold, longestBranch, tree.getRoot());