Configuration API

Configuration Package

Configuration modules for PhysPlot.

Input data structure:

Configuration modules expose constants or helper functions consumed by the GUI at import time.

Return type:

Package marker module; no runtime value is returned.

Optional main/runtime behavior:

Not intended to be executed directly.

Legacy Curve-Fit Configuration

Editable curve-fit definitions for PhysPlot.

Change POLYNOMIAL_DEGREES to control the polynomial fit rows in the configuration dialog. The application expands that list into individual fit slots automatically.

Input data structure:

Legacy configuration data are represented as dictionaries with display_name, default_label, kind, and either degree or a callable function.

Return type:

Exposes CURVE_FIT_DEFINITIONS, a list of dictionaries consumed by older versions of the configuration dialog.

Optional main/runtime behavior:

This file is retained for compatibility. The current application discovers curve-fitting plugins from the top-level curvefitting folder.

exponential_decay(x, a, b) numpy.ndarray[source]

Evaluate the legacy exponential curve-fit model.

Parameters:

x (numpy.ndarray): One-dimensional X data array. a (float): Amplitude parameter. b (float): Exponent parameter.

Returns:

numpy.ndarray: Model values a * exp(b * x).

polynomial_default_label(degree) str[source]

Return the default legend label for a polynomial fit.

Parameters:

degree (int): Polynomial degree.

Returns:

str: Default label text.

polynomial_display_name(degree) str[source]

Build a user-facing label for a polynomial degree.

Parameters:

degree (int): Polynomial degree.

Returns:

str: Human-readable name such as Linear or 4th degree.