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.
pip install labplotlib
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.
Every value has a story.
Represent measurements with uncertainties and propagate independent errors through calculations.
Find the relationship.
Fit lines or models, inspect residuals, and use fit statistics to understand your results.
Show what matters.
Make clear plots with error bars, fit curves, and styling built on Matplotlib.
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
02 THE TOOLKIT
Find your starting point.
Everything you need, from first measurement to final figure.
Measurements
Values, uncertainty, arithmetic and formatting that keeps the details in view.
Explore measurements ↗ 02 / VISUALISEPlotting
Go from points and error bars to fits, residuals, bands and Bode plots.
Explore plotting ↗ 03 / ANALYSEModel fitting
Fit built-in or custom models and get parameters and statistics back.
Explore fitting ↗ 04 / FOUNDATIONSDimensions & units
Work with SI dimensions and keep dimensional arithmetic consistent.
Explore dimensions ↗ 05 / APPLICATIONSElectronics
Find cutoff frequencies, time constants, resonance and more.
Explore electronics ↗ 06 / ANALYSEMethods
Polynomial fits, fit statistics and clustering for your analysis.
Explore methods ↗ 07 / FINISHING TOUCHESStyling
Set the theme, refine your axes and save the finished figure.
Explore styling ↗ 08 / REFERENCESymbols
Find the mathematical symbols you need for labels and notes.
Explore symbols ↗ 09 / REFERENCEConstants
Bring scientific constants and their dimensions into your calculations.
Explore constants ↗03 IN PRACTICE
See it in action.
Real workflows are the best place to begin. Pick one and make it your own.
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.
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 )

