repainted peak search bounding boxes to green
This commit is contained in:
@ -1757,7 +1757,7 @@ def main():
|
|||||||
# Линейный график спектра текущего свипа
|
# Линейный график спектра текущего свипа
|
||||||
fft_line_obj, = ax_fft.plot([], [], lw=1)
|
fft_line_obj, = ax_fft.plot([], [], lw=1)
|
||||||
fft_ref_obj, = ax_fft.plot([], [], lw=1, color="red", alpha=0.9, visible=False)
|
fft_ref_obj, = ax_fft.plot([], [], lw=1, color="red", alpha=0.9, visible=False)
|
||||||
fft_peak_box_objs = [ax_fft.plot([], [], lw=1, color="red", visible=False)[0] for _ in range(3)]
|
fft_peak_box_objs = [ax_fft.plot([], [], lw=3, color="green", visible=False)[0] for _ in range(3)]
|
||||||
fft_bg_obj = ax_fft.axhline(0.0, lw=1, color="red", visible=False)
|
fft_bg_obj = ax_fft.axhline(0.0, lw=1, color="red", visible=False)
|
||||||
fft_left_obj = ax_fft.axvline(0.0, lw=1, color="red", visible=False)
|
fft_left_obj = ax_fft.axvline(0.0, lw=1, color="red", visible=False)
|
||||||
fft_right_obj = ax_fft.axvline(0.0, lw=1, color="red", visible=False)
|
fft_right_obj = ax_fft.axvline(0.0, lw=1, color="red", visible=False)
|
||||||
@ -2636,7 +2636,8 @@ def run_pyqtgraph(args):
|
|||||||
curve_fft = p_fft.plot(pen=pg.mkPen((255, 120, 80), width=1))
|
curve_fft = p_fft.plot(pen=pg.mkPen((255, 120, 80), width=1))
|
||||||
curve_fft_ref = p_fft.plot(pen=pg.mkPen((255, 0, 0), width=1))
|
curve_fft_ref = p_fft.plot(pen=pg.mkPen((255, 0, 0), width=1))
|
||||||
peak_pen = pg.mkPen((255, 0, 0), width=1)
|
peak_pen = pg.mkPen((255, 0, 0), width=1)
|
||||||
fft_peak_boxes = [p_fft.plot(pen=peak_pen) for _ in range(3)]
|
peak_box_pen = pg.mkPen((0, 170, 0), width=3)
|
||||||
|
fft_peak_boxes = [p_fft.plot(pen=peak_box_pen) for _ in range(3)]
|
||||||
fft_bg_line = pg.InfiniteLine(angle=0, movable=False, pen=peak_pen)
|
fft_bg_line = pg.InfiniteLine(angle=0, movable=False, pen=peak_pen)
|
||||||
fft_left_line = pg.InfiniteLine(angle=90, movable=False, pen=peak_pen)
|
fft_left_line = pg.InfiniteLine(angle=90, movable=False, pen=peak_pen)
|
||||||
fft_right_line = pg.InfiniteLine(angle=90, movable=False, pen=peak_pen)
|
fft_right_line = pg.InfiniteLine(angle=90, movable=False, pen=peak_pen)
|
||||||
|
|||||||
Reference in New Issue
Block a user