A LITTLE MORE SCIENCE, A LITTLE LESS BOILERPLATE

From data points
to “aha.”

LabPlotLib helps you turn lab measurements into meaningful results and beautiful plots. Less wrestling with code, more understanding your experiment.

GET STARTEDpip install labplotlib
FIG. 01THE BEAUTY OF A GOOD FIT
Hooke's law measurements with a fitted line and residuals
THE LITTLE DETAILS MATTERuncertainty included.±   ·   χ²   ·   R²
BUILT FOR THE LAB BENCH & BEYONDMEASURE   /   ANALYSE   /   VISUALISE

01   THE IDEA

Good science starts
with good questions.

What if your tools helped you focus on the physics, not the plumbing?

Keep track of uncertainty, fit your data, and make publication-ready figures with familiar Python tools. LabPlotLib brings the repetitive parts of experimental analysis together in one place.

01 / MEASURE

Every value has a story.

Represent measurements with uncertainties and propagate independent errors through calculations.

02 / ANALYSE

Find the relationship.

Fit lines or models, inspect residuals, and use fit statistics to understand your results.

03 / VISUALISE

Show what matters.

Make clear plots with error bars, fit curves, and styling built on Matplotlib.

A SMALL EXAMPLE / A BIGGER PICTURE

Uncertainty comes along for the ride.

Multiply a measurement and its uncertainty is propagated too. Format the result in a useful unit when you're ready to share it.

See the full example ↗
from labplotlib import Measurement

pressure = Measurement.from_pm(2_000_000, 100_000)
doubled = pressure * 2
print(doubled.to_string(unit="Pa", prefix="mega"))
# 4.0 ± 0.2 MPa

04   YOUR LAB COMPANION

A little help,
right in your editor.

Meet LabPlotLib-snippets, a VS Code sidebar for finding and inserting plotting calls and symbols without breaking your flow.

Meet the extension ↗

Its bundled catalog is a snapshot and may differ from your installed LabPlotLib version.

YOUR WORKSPACE
LABPLOTLIB ⌄

⌕   Search functions

  • ∿   line_plot
  • ⌁   scatter_with_fit
  • ±   errorbar_plot
  • α   symbols
experiment.py
1  from labplotlib import (
2      scatter_with_fit)
3
4  scatter_with_fit(
5      x, y,
6      xlabel="Time (s)",
7      ylabel="Distance (m)",
8  )