plot: Fix the point scale cannot selecting the last point (#1143)

This commit is contained in:
Floyd Wang 2025-08-15 17:09:41 +08:00 committed by GitHub
parent d559b56fb0
commit 4c545165eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ where
.into_option()
.map_or(0., |(min, max)| max - min);
range_diff / (len - 1) as f32
range_diff / (len as f32)
};
Self { domain, range_tick }