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 68a9e75 commit 6f7a23dCopy full SHA for 6f7a23d
src/coord/logarithmic.rs
@@ -88,10 +88,12 @@ impl<V: LogScalable> Ranged for LogCoord<V> {
88
}
89
90
fn key_points(&self, max_points: usize) -> Vec<Self::ValueType> {
91
- let tier_1 = (self.logic.end.as_f64() / self.logic.start.as_f64())
+ let mut tier_1 = (self.logic.end.as_f64() / self.logic.start.as_f64())
92
.log10()
93
.abs()
94
- .floor() as usize;
+ .floor()
95
+ .max(1.0) as usize;
96
+
97
let tier_2_density = if max_points < tier_1 {
98
0
99
} else {
0 commit comments