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 whatever y it 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: units and sample, the AC-versus-DC source (refused, naming both, when a file offers both) and one series per AC frequency. Each series’ T*chi is then differentiated with calamari.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=None means 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 to chi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is within SCAN_H_TOL_OE of zero: there the moment is not a response to the field.

  • sample (Sample | None) – Forwarded to chi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is within SCAN_H_TOL_OE of zero: there the moment is not a response to the field.

  • source (str) – Forwarded to chi_series(); see there. The DC route is M/H, and it is refused, as detection refuses it, when the held field is within SCAN_H_TOL_OE of 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:

list[PlotSeries]

Returns:

list of PlotSeries – One per AC frequency present (one for a single-frequency or DC file). yerr is None: 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: