fix graph and white background added
This commit is contained in:
@@ -26,7 +26,7 @@ from PyQt6.QtWidgets import (
|
||||
import numpy as np
|
||||
import pyqtgraph as pg
|
||||
|
||||
from python_app.gui.controllers.renderers.common import create_plot
|
||||
from python_app.gui.controllers.renderers.common import CAPTURED_TRACE_PEN, create_plot
|
||||
from python_app.models.gui_profile_schema import GuiPreprocessDialogStateModel
|
||||
from python_app.models.dataset_model import TraceData
|
||||
from python_app.orchestration.preprocess_assets import (
|
||||
@@ -470,17 +470,9 @@ class PreprocessDialog(QDialog):
|
||||
assert self._amplitude_plot is not None
|
||||
assert self._phase_plot is not None
|
||||
self._amplitude_plot.clear()
|
||||
self._amplitude_plot.plot(
|
||||
trace.frequency_hz,
|
||||
magnitude_db,
|
||||
pen=pg.mkPen("#4cc9f0", width=1.8),
|
||||
)
|
||||
self._amplitude_plot.plot(trace.frequency_hz, magnitude_db, pen=CAPTURED_TRACE_PEN)
|
||||
self._phase_plot.clear()
|
||||
self._phase_plot.plot(
|
||||
trace.frequency_hz,
|
||||
phase_deg,
|
||||
pen=pg.mkPen("#f48c06", width=1.8),
|
||||
)
|
||||
self._phase_plot.plot(trace.frequency_hz, phase_deg, pen=CAPTURED_TRACE_PEN)
|
||||
elif self._preview_placeholder is not None:
|
||||
self._preview_placeholder.setText(
|
||||
f"{title}\n"
|
||||
|
||||
Reference in New Issue
Block a user