1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Add Plot::clamp_grid (#2480)

* Add Plot::clamp_grid

* Update changelog
This commit is contained in:
Emil Ernerfeldt
2022-12-19 11:39:22 +01:00
committed by GitHub
parent e4e1638fc0
commit 99af63fad2
5 changed files with 80 additions and 12 deletions

View File

@@ -755,6 +755,7 @@ impl ChartsDemo {
Plot::new("Normal Distribution Demo")
.legend(Legend::default())
.data_aspect(1.0)
.clamp_grid(true)
.show(ui, |plot_ui| plot_ui.bar_chart(chart))
.response
}