Skip to content

Fix waterfall ImageItem mapping with setRect geometry (update_plot + recalculate_plot)#121

Open
makrohard wants to merge 1 commit intoxmikos:masterfrom
makrohard:fix/waterfall-rect-mapping
Open

Fix waterfall ImageItem mapping with setRect geometry (update_plot + recalculate_plot)#121
makrohard wants to merge 1 commit intoxmikos:masterfrom
makrohard:fix/waterfall-rect-mapping

Conversation

@makrohard
Copy link

This fixes a waterfall failure caused by calling ImageItem.scale(x, y) during waterfall initialization
(TypeError: scale(self): too many arguments in some Qt/pyqtgraph stacks).

Instead of scaling/translating the ImageItem, the waterfall is mapped using setRect() in frequency/time coordinates.
The same mapping is applied in both update_plot() and recalculate_plot().

Tested on:

  • Debian GNU/Linux 12 (bookworm), kernel 6.12.62+rpt-rpi-2712 (aarch64)
  • Python 3.11.2
  • HackRF One (libhackrf 2022.09.1, firmware 2024.02.1)
  • Backend: hackrf_sweep

Related: #103, #108

…-based geometry; sync update_plot and recalculate_plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant