pyfli.phasor.phasorSEPL.plot#
plot.py#
Matplotlib helpers for rendering phasor plots and SEPL comparisons.
All functions return (fig, ax) so callers retain full control.
Color palette mirrors the widget colour scheme; each acquisition mode has a distinct colour defined in PALETTE.
Functions
|
Mark and label selected lifetime values on a SEPL curve. |
|
Overlay the universal semicircle as a dashed grey reference. |
|
Apply standard phasor-plot aesthetics to ax. |
|
Show how the discrete SEPL converges to the universal semicircle as N → ∞. |
|
Overlay multiple SEPL curves on a single phasor plot. |
|
Plot the SEPL (Single-Exponential Phasor Locus) for a single config. |
- plot_phasor(cfg, *, ax=None, figsize=(7, 5), show_universal=True, show_ticks=True, show_endpoints=True, color=None, label=None, title=None)[source]#
Plot the SEPL (Single-Exponential Phasor Locus) for a single config.
- Parameters:
cfg (
AcquisitionConfig)ax (
Axes,optional — draw into an existing axes.)figsize (
tuple — figure size if *ax* is None.)show_universal (
bool — overlay the universal semicircle.)show_ticks (
bool — mark lifetime values on the SEPL.)show_endpoints (
bool — mark τ→0andτ→∞ endpoints.)color (
str,optional — override default mode colour.)label (
str,optional — override default legend label.)title (
str,optional — axes title.)
- Return type:
fig,ax
- plot_locus_comparison(cfgs, *, figsize=(8, 5.5), show_universal=True, show_ticks=True, colors=None, labels=None, title="Phasor SEPL comparison — Michalet 2021", suptitle_note="")[source]#
Overlay multiple SEPL curves on a single phasor plot.
- Parameters:
cfgs (
sequenceofAcquisitionConfig)figsize (
tuple)show_universal (
bool)show_ticks (
bool — only for the first curvetokeep the plot readable.)colors (
sequenceofhex strings (defaultstoPALETTE).)labels (
sequenceofstrings (defaultstoMODE_LABELS).)title (
str)suptitle_note (
str — small subtitle below the title.)
- Return type:
fig,ax
- plot_discrete_N_sweep(base_cfg, N_values=(4, 8, 16, 64, 256), *, figsize=(8, 5.5))[source]#
Show how the discrete SEPL converges to the universal semicircle as N → ∞.
- Parameters:
base_cfg (
AcquisitionConfig — mode will be overriddentoDISCRETE.)N_values (
sequenceofint — bin countstosweep.)figsize (
tuple)
- Return type:
fig,ax