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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user