linkbudget.waterfall_publisher¶
waterfall_publisher ¶
waterfall_publisher.py
WaterfallPublisher -- renders the signal- and noise-power cascade
("waterfall") through the budget stages to an image file. The output format
is taken from the file extension (.png, .svg, .pdf ...).
matplotlib is imported lazily inside WaterfallPublisher.publish, so
it is only required when this publisher is actually used. Install it with
pip install 'linkbudget-rf[plot]'.
WaterfallPublisher ¶
WaterfallPublisher(fpath: str, title: str = 'Link Budget Cascade', figsize: tuple[float, float] = (11, 6), dpi: int = 140)
Bases: Publisher
Render the per-stage signal / noise power cascade to an image.
The shaded band between the signal and noise traces is the running SNR;
stages carrying zero signal or noise power (-inf dBW) are drawn along
the bottom of the axes.
Source code in linkbudget/waterfall_publisher.py
publish ¶
Render the cascade to self.fpath (format from the extension).