Add units, change topic name.

This commit is contained in:
2025-08-17 19:04:46 +02:00
parent 57ca3e313f
commit dba4d652f3
5 changed files with 14 additions and 8 deletions

View File

@@ -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(