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 (ACchi'vs DCM/H) is chosen and stamped into the y-label, how units convert throughsample, 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=Falseto 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.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 (useimag_scalewhen chi’’ would be invisible at chi’ scale).'both'is inherently AC – a DC measurement has no chi’’ – so it refusessource='dc', and'auto'resolves it as AC even on a file that also carries a DC moment.units (
str) – Forwarded tochi_series(); see there.sample (
Sample|None) – Forwarded tochi_series(); see there.source (
str) – Forwarded tochi_series(); see there.inverse (
bool) – Forwarded tochi_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 toax.plot/ax.errorbarfor every series.field_unit=is refused by name: this plot has no field axis (it belongs toplot_chi_vs_h()).
- Return type:
- Returns:
matplotlib.axes.Axes– The axes drawn into (artists viaax.lines/ax.containers).