From 6fc12445701d9a3f1c92292924a91df532d753ac Mon Sep 17 00:00:00 2001 From: Theodor Chikin Date: Sun, 21 Dec 2025 15:05:16 +0300 Subject: [PATCH] raw data waterfall is now looks good. But xaxes of both waterfalls have wrong direction --- RFG_ADC_dataplotter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFG_ADC_dataplotter.py b/RFG_ADC_dataplotter.py index 1070301..25fd8f5 100755 --- a/RFG_ADC_dataplotter.py +++ b/RFG_ADC_dataplotter.py @@ -512,7 +512,7 @@ def main(): img_obj.set_data(np.zeros((width, max_sweeps), dtype=np.float32)) img_obj.set_extent((0, max_sweeps - 1, 0, width - 1 if width > 0 else 1)) ax_img.set_xlim(0, max_sweeps - 1) - ax_img.set_ylim(max(1, width - 1), 0) + ax_img.set_ylim(0, max(1, width - 1)) # FFT буферы: время по X, бин по Y ring_fft = np.full((max_sweeps, fft_bins), np.nan, dtype=np.float32) img_fft_obj.set_data(np.zeros((fft_bins, max_sweeps), dtype=np.float32)) @@ -795,7 +795,7 @@ def run_pyqtgraph(args): head = 0 # Водопад: время по оси X, X по оси Y img.setImage(ring.T, autoLevels=False) - p_img.setRange(xRange=(0, max_sweeps - 1), yRange=(max(1, width - 1), 0), padding=0) + p_img.setRange(xRange=(0, max_sweeps - 1), yRange=(0, max(1, width - 1)), padding=0) p_line.setXRange(0, max(1, width - 1), padding=0) # FFT: время по оси X, бин по оси Y ring_fft = np.full((max_sweeps, fft_bins), np.nan, dtype=np.float32)