mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Add units, change topic name.
This commit is contained in:
10
src/app.rs
10
src/app.rs
@@ -117,15 +117,14 @@ impl eframe::App for App {
|
||||
egui::vec2(ui.available_width(), half_height),
|
||||
Layout::top_down(egui::Align::Min),
|
||||
|ui| {
|
||||
// Magnitude and phase
|
||||
// Magnitude
|
||||
let magnitude = self.magnitude_series.lock().unwrap();
|
||||
let phase = self.phase_series.lock().unwrap();
|
||||
Plot::new("magnitude")
|
||||
.allow_scroll(false)
|
||||
.allow_drag(false)
|
||||
// .center_y_axis(true)
|
||||
.legend(Legend::default().position(Corner::LeftTop))
|
||||
.y_axis_label("Value [...]")
|
||||
.y_axis_label("Magnitude [Ω]")
|
||||
.y_axis_min_width(2.0)
|
||||
.show(ui, |plot_ui| {
|
||||
plot_ui.line(
|
||||
@@ -140,15 +139,14 @@ impl eframe::App for App {
|
||||
egui::vec2(ui.available_width(), half_height),
|
||||
Layout::top_down(egui::Align::Min),
|
||||
|ui| {
|
||||
// Magnitude and phase
|
||||
let magnitude = self.magnitude_series.lock().unwrap();
|
||||
// Phase
|
||||
let phase = self.phase_series.lock().unwrap();
|
||||
Plot::new("phase")
|
||||
.allow_scroll(false)
|
||||
.allow_drag(false)
|
||||
// .center_y_axis(true)
|
||||
.legend(Legend::default().position(Corner::LeftTop))
|
||||
.y_axis_label("Value [...]")
|
||||
.y_axis_label("Phase [rad]")
|
||||
.y_axis_min_width(2.0)
|
||||
.show(ui, |plot_ui| {
|
||||
plot_ui.line(
|
||||
|
||||
Reference in New Issue
Block a user