calamari.plot.plot_chi_vs_t#

calamari.plot.plot_chi_vs_t(measurement, *, ax=None, component='real', units='emu_per_oe', sample=None, source='auto', inverse=False, imag_scale=1.0, label=None, yerr=True, **style)#

Plot susceptibility (or 1/chi) against temperature.

The drawing half over chi_series() – see there for how the source (AC chi' vs DC M/H) is chosen and stamped into the y-label, how units convert through sample, and how a multi-frequency file becomes one labelled series per frequency.

Error bars are drawn whenever the file records per-point errors (converted with the same factors as the values); pass yerr=False to suppress them. An all-zero error column – the instrument’s “one scan averaged” convention – is treated as no errors.

Parameters:
  • measurement (Measurement) – The loaded file.

  • ax (Axes | None) –

    Draw into these axes; omitted, a new single-axes figure is created and the axes returned either way:

    ax = plot_chi_vs_t(m, units="molar", sample=sample)
    calamari.plot.save(ax, "chi.pdf")
    

  • component (str) – 'both' overlays chi’ and chi’’ as labelled series on one shared y-axis (use imag_scale when chi’’ would be invisible at chi’ scale). 'both' is inherently AC – a DC measurement has no chi’’ – so it refuses source='dc', and 'auto' resolves it as AC even on a file that also carries a DC moment.

  • units (str) – Forwarded to chi_series(); see there.

  • sample (Sample | None) – Forwarded to chi_series(); see there.

  • source (str) – Forwarded to chi_series(); see there.

  • inverse (bool) – Forwarded to chi_series(); see there.

  • imag_scale (float) – Display-only multiplier on the chi’’ values (and error bars); the series’ legend label gets a (x<scale>) note so a rescaled curve is never mistaken for data. Default 1.0.

  • label (str | None) – Legend label (component='both' and frequency splits extend it per series).

  • yerr (bool) – Draw error bars when available. Default True.

  • **style (Any) – Forwarded to ax.plot/ax.errorbar for every series. field_unit= is refused by name: this plot has no field axis (it belongs to plot_chi_vs_h()).

Return type:

Axes

Returns:

matplotlib.axes.Axes – The axes drawn into (artists via ax.lines/ax.containers).