diff --git a/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java b/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java index a06ac84b3..9510b03a9 100644 --- a/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java +++ b/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java @@ -338,7 +338,7 @@ public void invalidateCaches() { } /** - * Called when data has changed and the range may not be valid any more. This is only called by the chart if + * Called when data has changed and the range may not be valid anymore. This is only called by the chart if * isAutoRanging() returns true. If we are auto ranging it will cause layout to be requested and auto ranging to * happen on next layout pass. * @@ -439,11 +439,9 @@ public boolean setMin(final double value) { * @return Range information, this is implementation dependent */ protected AxisRange autoRange(final double length) { - // guess a sensible starting size for label size, that is approx 2 lines - // vertically or 2 charts horizontally + // guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally if (isAutoRanging() || isAutoGrowRanging()) { - // guess a sensible starting size for label size, that is approx 2 - // lines vertically or 2 charts horizontally + // guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally final double labelSize = getTickLabelFont().getSize() * 1.2; // N.B. was '2' in earlier implementations return autoRange(getAutoRange().getMin(), getAutoRange().getMax(), length, labelSize); }