Frequency window independent of receiver tuning and transport.
More...
|
| float | frequency_at (self, float position) |
| | Map normalized horizontal position to displayed frequency.
|
| "SpectrumViewport" | pan (self, float fraction) |
| | Shift the viewport by a fraction of its visible bandwidth.
|
| "SpectrumViewport" | zoom (self, float factor, *, float min_span_hz=100_000, float|None max_span_hz=None) |
| | Zoom without changing the receiver's tuned frequency.
|
Frequency window independent of receiver tuning and transport.
◆ frequency_at()
| float ui.radio.sdrforge_spectrum_if.SpectrumViewport.frequency_at |
( |
| self, |
|
|
float | position ) |
Map normalized horizontal position to displayed frequency.
- Parameters
-
| position | Normalized horizontal position (0 to 1 across the viewport). |
- Returns
- Displayed frequency in Hz.
◆ pan()
| "SpectrumViewport" ui.radio.sdrforge_spectrum_if.SpectrumViewport.pan |
( |
| self, |
|
|
float | fraction ) |
Shift the viewport by a fraction of its visible bandwidth.
- Parameters
-
| fraction | Signed fraction of the current span to shift. |
- Returns
- New viewport with the shifted center frequency.
◆ zoom()
| "SpectrumViewport" ui.radio.sdrforge_spectrum_if.SpectrumViewport.zoom |
( |
| self, |
|
|
float | factor, |
|
|
* | , |
|
|
float | min_span_hz = 100_000, |
|
|
float | None | max_span_hz = None ) |
Zoom without changing the receiver's tuned frequency.
- Parameters
-
| factor | Positive finite multiplier of the current span. |
| min_span_hz | Minimum requested span in Hz. |
| max_span_hz | Optional maximum span in Hz. |
- Returns
- New viewport with the adjusted span.
The documentation for this class was generated from the following file:
- ui/radio/sdrforge_spectrum_if.py