xlnstorch.viz.plot_staircase#
- xlnstorch.viz.plot_staircase(ax, f_range, low, high, step=1)#
Plot staircase functions for different LNS precisions on a logarithmic x-axis.
- Parameters:
ax (matplotlib.axes.Axes) – The axes object on which to plot the staircase functions.
f_range (Tuple[int] | List[int] | int) – The range of LNS precisions to visualize. Can be a single integer, a list of integers, or a tuple of integers.
low (float) – The lower bound of the x-axis range.
high (float) – The upper bound of the x-axis range.
step (float, optional) – The step size for the x-axis, by default 1.
- Return type:
None
- Raises:
ValueError – If the ‘low’ value is greater than or equal to the ‘high’ value.