← Back to home

LabPlotLib reference

This reference describes the LabPlotLib 0.8.0 API. Each page covers one module, with examples, parameters, and return values.

Module What it covers
dimensions SI base-dimension vectors and unit algebra
measurement Values, uncertainties, arithmetic, physics functions, and formatting
plotting Line plots, fits, error bars, residuals, and Bode plots
fitting Arbitrary model fits with χ², p-values, and built-in electronics models
electronics Cutoff, roll-off, resonance, time constants, rise time, and phase
methods Polynomial fits, fit statistics, and clustering
styling Theme, axes, figure layout, saving, and showing
symbols Mathematical symbol lookup and printing
constants Scientific constants for calculations

Most frequently used names are available directly from labplotlib. Other functions shown with module imports are available from their respective modules. See the measurement example for a complete runnable program, and the speed-of-sound example for a DataFrame-based calculation of a mean with uncertainty.

Conventions

  • Parameters after * in a signature must be supplied by keyword.
  • Plotting helpers return a Matplotlib Figure; they do not call show() by default. When neither saving nor showing, they leave figure layout to the caller.
  • A Measurement stores a value and an optional absolute standard uncertainty. Pass a Unit for dimensional arithmetic; string units remain display-only metadata.
  • Examples assume LabPlotLib is installed. DataFrame examples additionally require pandas.