From adb1efdd2422f40bccb1737f4e82f853e950004c Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Thu, 10 Dec 2015 10:21:34 +0100 Subject: [PATCH] Change border log scaling to powers of 10 refs #48 --- src/eva2/gui/plot/Exp.java | 3 --- src/eva2/tools/chart2d/ScaledBorder.java | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/eva2/gui/plot/Exp.java b/src/eva2/gui/plot/Exp.java index 82e75955..7cbc726c 100644 --- a/src/eva2/gui/plot/Exp.java +++ b/src/eva2/gui/plot/Exp.java @@ -53,9 +53,6 @@ public class Exp extends DFunction { public double getSourceOf(double target) { if (target <= 0) { return Math.log(minValue); // think of a minimal value we want to show in case invalid values are requested -// throw new IllegalArgumentException( -// "Can not calculate log on values smaller than or equal 0 --> target = " -// + target); } return Math.log(target); } diff --git a/src/eva2/tools/chart2d/ScaledBorder.java b/src/eva2/tools/chart2d/ScaledBorder.java index 40d057d6..2182ed09 100644 --- a/src/eva2/tools/chart2d/ScaledBorder.java +++ b/src/eva2/tools/chart2d/ScaledBorder.java @@ -100,7 +100,7 @@ public class ScaledBorder implements Border { public DFunction xScale, yScale; /** - * formatters of the x- and y-axis numbers + * Formatters of the x- and y-axis numbers * * @see java.text.NumberFormat */ @@ -110,7 +110,7 @@ public class ScaledBorder implements Border { /** * Possible patterns for the number formats used by a border. */ - private String[] decPatterns = {"#,##0.###", "0.###E0"}; // standard decimal or scientific exponential + private String[] decPatterns = {"#,##0.###", "00.###E0"}; // standard decimal or scientific exponential /** * Internal states of which decPatterns to switch to next.