ooragan.plot_magnetic_field#

ooragan.plot_magnetic_field(fit_result: _FitResult, two_way_sweep: bool = True, show_frequency: bool = True, fit_frequency: bool = False, title: str | None = None, figure_style: str | Inherit = Inherit) SmartFigure[source]#

Plots the internal quality factor (\(Q_i\)) as a function of the parallel magnetic field (\(B_\parallel\)). Also can plot and fit the frequency shift induced by the magnetic field.

Parameters:
fit_resultFitResult or list of FitResult

Single or list of FitResult from a Fitter.

two_way_sweepbool, optional

Whether or not the data was taken while the field was going up and down. Defaults to True.

show_frequencybool, optional

Whether or not to show the frequency variation on the plot. Defaults to True.

fit_frequencybool, optional

Whether or not to fit the frequency variation. Defaults to False.

titlestr, optional

Title of the figure. Defaults to None.

figure_stylestr, optional

GraphingLib figure style to apply to the plot. See here for more info.

Notes

The frequency is fitted using the model

\[\frac{\Delta f}{f_r} = -\frac{\pi}{48}\frac{e^2t^2}{\hbar k_B T_c}D\left(1+\theta_B^2\frac{w^2}{t^2}\right)B_\parallel^2\]

from C. Roy, S. Frasca and P. Scarlino, Magnetic-field-resilient high-impedance high-kinetic-inductance superconducting resonators, Phys. Rev. Appl. 25, 014069 (2026).