From 20b5e49eaffdbc56b9d0274200a12204e362d5b1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 6 Jun 2022 14:09:01 +0100 Subject: [PATCH] JAL-4023 use %g for distances (scientific notation for very small or large values) --- src/jalview/gui/TreeCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.2