plotting.plot_fit

plotting.plot_fit(
    fit,
    *,
    freqs=None,
    data=True,
    phase='rad',
    unwrap=False,
    extend=0.0,
    n=400,
    title='Analytic continuation of tabulated data',
    height=None,
    width=None,
)

Overlay a continued curve on the tabulated samples it was fitted to.

Parameters

Name Type Description Default
fit TransferFunction or callable The continuation to draw. A :class:~nefes.perturbation.continuation.RationalFit or a :func:~nefes.elements.dynamic_source.fit_impulse_response result carries its own freqs/values (drawn as markers); any other callable is drawn as a line only (pass freqs to set the grid). required
freqs array_like Evaluation grid [Hz] for the fit line; default a dense grid spanning the data band (optionally widened by extend). None
data bool Overlay the original tabulated samples as markers (default True; ignored when the samples are unavailable). True
phase (rad, deg) Phase unit (default "rad"). "rad"
unwrap bool Unwrap the phase along frequency (default False). False
extend float Fractional band widening of the default fit grid beyond the data (e.g. 0.25 draws 25% past each end to show the continuation’s behaviour outside the data). 0.0
n int Number of points on the fit line (default 400). 400
title str Figure title. 'Analytic continuation of tabulated data'
height int Figure size in pixels. None
width int Figure size in pixels. None

Returns

Name Type Description
plotly.graph_objects.Figure
Back to top