1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Small plot-relates fixes (#526)

* plot: take any id source as argument instead of ToString

* plot: allow user to set stroke on HLine/VLine

* Update changelog
This commit is contained in:
Emil Ernerfeldt
2021-06-28 10:51:06 +02:00
committed by GitHub
parent 3a14f5e8e2
commit cba840ec49
5 changed files with 55 additions and 12 deletions

View File

@@ -219,7 +219,7 @@ fn example_plot() -> egui::plot::Plot {
let x = egui::remap(i as f64, 0.0..=(n as f64), -TAU..=TAU);
Value::new(x, x.sin())
})));
Plot::new("Example Plot")
Plot::new("example_plot")
.line(line)
.height(32.0)
.data_aspect(1.0)