Change border log scaling to powers of 10

refs #48
This commit is contained in:
Fabian Becker 2015-12-10 10:21:34 +01:00
parent a815664e98
commit adb1efdd24
2 changed files with 2 additions and 5 deletions

View File

@ -53,9 +53,6 @@ public class Exp extends DFunction {
public double getSourceOf(double target) { public double getSourceOf(double target) {
if (target <= 0) { if (target <= 0) {
return Math.log(minValue); // think of a minimal value we want to show in case invalid values are requested 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); return Math.log(target);
} }

View File

@ -100,7 +100,7 @@ public class ScaledBorder implements Border {
public DFunction xScale, yScale; public DFunction xScale, yScale;
/** /**
* formatters of the x- and y-axis numbers * Formatters of the x- and y-axis numbers
* *
* @see java.text.NumberFormat * @see java.text.NumberFormat
*/ */
@ -110,7 +110,7 @@ public class ScaledBorder implements Border {
/** /**
* Possible patterns for the number formats used by a 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. * Internal states of which decPatterns to switch to next.