thLib - Documentation

thLib is a library for scientific data analysis.

It is hosted under, and contains the following modules:

fits Contains examples for a number of fitting applications, for fitting
  • lines
  • circles (with RANSAC, or directly)
  • exponential decays
  • sine waves
  • ellipses
  • regressions (including confidence intervals)
signals Has functions that manipulate data
  • a Savitzky-Golay for data smoothing and derivatives
  • a power spectrum
  • a function to calculate and show mean and standard error for time series data.
  • a visualization for cross- and auto-correlations
ui Provides GUIs for
  • file- and directory selection, and for saving files
  • a listbox (item selection from a list)
  • a progress bar
  • a waitbar


The simplest way to install thLib is

>>> pip install thLib

For upgrading to the latest version, you have to type

>>> pip install thLib -U


numpy, scipy, matplotlib, pandas, statsmodels, skimage


The functionality to work with sound-files has been moved to scikit-sound (

Modules relating to

  • quaternions
  • rotation matrices
  • vectors
  • IMUs
  • Marker-based recording systems
  • 3d data viewers

have been moved into scikit-kinematics (

Indices and tables


Author: Thomas Haslwanter
Version: 0.12.2
Date: Feb-2018
Copyright (c): 2018, Thomas Haslwanter. All rights reserved.
Licence: This work is licensed under the BSD 2-Clause License