We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d240d commit b868d2fCopy full SHA for b868d2f
app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal/LinearTicks.java
@@ -269,11 +269,10 @@ public static double selectNiceStep(final double min_distance)
269
{
270
final double log = Math.log10(min_distance);
271
final double order_of_magnitude = Math.pow(10, Math.floor(log));
272
- final double step = min_distance / order_of_magnitude;
273
for (int i=0; i<NICE_STEPS.length; ++i)
274
if (NICE_STEPS[i] * order_of_magnitude >= min_distance)
275
return NICE_STEPS[i] * order_of_magnitude;
276
- return step * order_of_magnitude;
+ return min_distance;
277
}
278
279
/** Create decimal format
0 commit comments