JAL-4023 use %g for distances (scientific notation for very small or large values) improvement/JAL-4023_snotation_for_trees
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 6 Jun 2022 13:09:01 +0000 (14:09 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 6 Jun 2022 13:09:01 +0000 (14:09 +0100)
src/jalview/gui/TreeCanvas.java

index 0012888..6f143db 100755 (executable)
@@ -259,7 +259,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 
       if (showDistances && (node.dist > 0))
       {
-        nodeLabel = new Format("%-.2f").form(node.dist);
+        nodeLabel = new Format("%g").form(node.dist);
       }
 
       if (showBootstrap && node.bootstrap > -1)
@@ -347,7 +347,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 
       if (showDistances && (node.dist > 0))
       {
-        nodeLabel = new Format("%-.2f").form(node.dist);
+        nodeLabel = new Format("%g").form(node.dist);
       }
 
       if (showBootstrap && node.bootstrap > -1)