calamari.plot.fisher_series#
- calamari.plot.fisher_series(measurement, *, units='emu_per_oe', sample=None, source='auto', smooth_window=None, polyorder=3, label=None)#
Resolve Fisher’s d(chi T)/dT against temperature, in physical units.
The physical-units companion of the
'fisher'detection method (calamari.transitions.find_transitions()). Detection works on whateveryit is given, because a constant positive scale moves neither a position nor a significance; a figure, though, has an axis with a unit on it, and that axis should read d(chi T)/dT in the chi unit of the paper. This is that curve.Built on
chi_series(), so everything it resolves is resolved the same way here:unitsandsample, the AC-versus-DCsource(refused, naming both, when a file offers both) and one series per AC frequency. Each series’T*chiis then differentiated withcalamari.transitions.smooth_derivative(), the Savitzky-Golay routine the detector uses, on the same uniform resampling of the sweep. Kelvin cancels (d(chi T)/dT has chi’s unit), so the y-label names the quantity and the chi unit, and the x of each series is that uniform grid, not the measured temperatures.Pass the detection’s window. A smoothed derivative’s extremum moves with the smoothing, so a curve drawn at a different window from the detection can put its maximum visibly beside the candidate it is meant to support.
smooth_window=Nonemeans the detector’s own default (11 grid points), which agrees with a detection run on the same sweep with no window; after any other detection, pass what it resolved:r = detect_transitions(m, methods=("peak", "fisher")) w = r.params["per_signal"]["chi_real"]["smooth_window"] ax = plot_fisher(m, smooth_window=w) overlay_transitions(r, ax=ax)
- Parameters:
measurement (
Measurement) – One temperature sweep (scan_kind == 'T-scan'). Anything else is refused: d(chi T)/dT is a derivative along temperature.units (
str) – Forwarded tochi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is withinSCAN_H_TOL_OEof zero: there the moment is not a response to the field.sample (
Sample|None) – Forwarded tochi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is withinSCAN_H_TOL_OEof zero: there the moment is not a response to the field.source (
str) – Forwarded tochi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is withinSCAN_H_TOL_OEof zero: there the moment is not a response to the field.smooth_window (
float|None) – Savitzky-Golay window in Kelvin, as for detection. See above.polyorder (
int) – Savitzky-Golay polynomial order (default 3, detection’s default).label (
str|None) – Base legend label; a frequency suffix is appended when the file splits by frequency.
- Return type:
- Returns:
listofPlotSeries– One per AC frequency present (one for a single-frequency or DC file).yerrisNone: a smoothed derivative’s point errors are correlated across the window, and bars drawn as if they were not would overstate what the curve knows.- Raises:
PlotInputError – For a sweep that is not a T-scan; a DC source at zero held field; a temperature at or below 0 K; or an invalid
chi_series()choice.calamari.exceptions.CurveInputError – A sweep
smooth_derivative()cannot differentiate (too few points, not monotonic in temperature), or a non-positive smoothing window. Also aValueError.calamari.exceptions.SampleValidationError – Sample facts required for the requested normalisation are missing.