From: Jim Procter Date: Mon, 6 Jun 2022 13:09:01 +0000 (+0100) Subject: JAL-4023 use %g for distances (scientific notation for very small or large values) X-Git-Tag: Release_2_11_2_6~60^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=20b5e49eaffdbc56b9d0274200a12204e362d5b1;p=jalview.git JAL-4023 use %g for distances (scientific notation for very small or large values) --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 0012888..6f143db 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -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)