calamari.plot.plot_transitions#

calamari.plot.plot_transitions(transitions, *, ax=None, field_unit='tesla', marker_by='method', color_by=None, markers=None, colors=None, connect=None, show_errors=True, legend=True, **style)#

Draw candidate coordinates without manufacturing a background map.

This is a physical temperature–field diagram, with temperature on x in Kelvin and applied field on y. Every supplied candidate is retained; no boundary is fitted or interpolated and no phase is assigned. Use overlay_transitions() for rules on a sweep or for a map whose family coordinates may be indexed.

Parameters:
  • transitions (object) – A TransitionResult, a pandas DataFrame, or a sequence of either, as in overlay_transitions(). Coordinates are T_K (Kelvin) and H_T (Tesla), regardless of display units. Array-level find_transitions results lack these physical coordinates; use detect_transitions or detect_transitions_all instead.

  • ax (Axes | None) – Axes to draw on; created when omitted. Existing axes must use physical coordinates, never indexed map rows.

  • field_unit (str) – Display unit for field coordinates and their errors. Tesla denotes applied mu0 H, without a demagnetisation correction.

  • marker_by (str | None) – Candidate columns encoding shape and colour; defaults to method shapes and white faces. Registry method markers agree with map overlays.

  • color_by (str | None) – Candidate columns encoding shape and colour; defaults to method shapes and white faces. Registry method markers agree with map overlays.

  • markers (dict | None) – Override mappings from column values to marker shapes or colours. Missing encodings form a drawable (missing) group; use None as its override key (NaN and pandas nullable values share this key).

  • colors (dict | None) – Override mappings from column values to marker shapes or colours. Missing encodings form a drawable (missing) group; use None as its override key (NaN and pandas nullable values share this key).

  • connect (str | None) – Only equal values of this explicitly named column are connected, in increasing temperature order (e.g. chain_id from link()). No connections are drawn by default; the column must identify one feature.

  • show_errors (bool) – Draw T_err_K and H_err_T where supplied. Missing columns or NaN entries give no bar in that direction; the point remains. These are detected-axis location standard errors, not fixed-axis spans or a complete systematic uncertainty budget (calibration, criterion and smoothing choices are not included).

  • legend (bool) – Show encoding groups and any recorded robust() thresholds.

  • **style (Any) – Passed to Axes.errorbar, overriding marker and error-bar defaults. Marker lines are disabled; use connect to state their grouping.

Return type:

Axes

Returns:

matplotlib.axes.Axes – The supplied or created axes. Group artists are available through ax.containers as matplotlib ErrorbarContainer objects.