cleanup some plot code
This commit is contained in:
parent
638e50203c
commit
395deb70da
@ -421,11 +421,9 @@ impl epi::App for MathApp {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let available_width: usize = ui.available_width() as usize;
|
|
||||||
let plot_size = ui.available_size();
|
|
||||||
let plot_size = Vec2::new(plot_size.x, plot_size.y);
|
|
||||||
|
|
||||||
ui.allocate_ui(plot_size, |ui| {
|
let available_width: usize = ui.available_width() as usize;
|
||||||
|
|
||||||
Plot::new("plot")
|
Plot::new("plot")
|
||||||
.set_margin_fraction(Vec2::ZERO)
|
.set_margin_fraction(Vec2::ZERO)
|
||||||
.data_aspect(1.0)
|
.data_aspect(1.0)
|
||||||
@ -457,7 +455,6 @@ impl epi::App for MathApp {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
self.last_info = (area_list, start.elapsed());
|
self.last_info = (area_list, start.elapsed());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user