src.pynanovna.vis.plot

plot(stream, axis_mode='first', fixed_limits=None, log=True)[source]

Show a magnitude plot from the data.

Args:

stream: The data stream to plot. axis_mode (str): ‘dynamic’, ‘fixed’, or ‘first’. Default is ‘dynamic’.

‘dynamic’ - Axes limits adjust to data. ‘fixed’ - Axes limits are fixed as per ‘fixed_limits’. ‘first’ - Axes limits are set based on the first data batch and kept constant.

fixed_limits (list): A dictionary containing axis limits if axis_mode is ‘fixed’.

Example: [min_s11, max_s11, min_s21, max_s21]

log (bool): If the magnitude should be log or not.