raw data waterfall is now looks good. But xaxes of both waterfalls have wrong direction
This commit is contained in:
@ -512,7 +512,7 @@ def main():
|
|||||||
img_obj.set_data(np.zeros((width, max_sweeps), dtype=np.float32))
|
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))
|
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_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
|
# FFT буферы: время по X, бин по Y
|
||||||
ring_fft = np.full((max_sweeps, fft_bins), np.nan, dtype=np.float32)
|
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))
|
img_fft_obj.set_data(np.zeros((fft_bins, max_sweeps), dtype=np.float32))
|
||||||
@ -795,7 +795,7 @@ def run_pyqtgraph(args):
|
|||||||
head = 0
|
head = 0
|
||||||
# Водопад: время по оси X, X по оси Y
|
# Водопад: время по оси X, X по оси Y
|
||||||
img.setImage(ring.T, autoLevels=False)
|
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)
|
p_line.setXRange(0, max(1, width - 1), padding=0)
|
||||||
# FFT: время по оси X, бин по оси Y
|
# FFT: время по оси X, бин по оси Y
|
||||||
ring_fft = np.full((max_sweeps, fft_bins), np.nan, dtype=np.float32)
|
ring_fft = np.full((max_sweeps, fft_bins), np.nan, dtype=np.float32)
|
||||||
|
|||||||
Reference in New Issue
Block a user