plot: Fix the point scale cannot selecting the last point (#1143)
This commit is contained in:
parent
d559b56fb0
commit
4c545165eb
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ where
|
||||||
.into_option()
|
.into_option()
|
||||||
.map_or(0., |(min, max)| max - min);
|
.map_or(0., |(min, max)| max - min);
|
||||||
|
|
||||||
range_diff / (len - 1) as f32
|
range_diff / (len as f32)
|
||||||
};
|
};
|
||||||
|
|
||||||
Self { domain, range_tick }
|
Self { domain, range_tick }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue