Skip to main content

Akima Interpolation

Project description

Akima is a Python library that implements Akima’s interpolation method using a continuously differentiable sub-spline built from piecewise cubic polynomials [1]. The resultant curve passes through the given data points and will appear smooth and natural.

Author:Christoph Gohlke
Organization:Laboratory for Fluorescence Dynamics. University of California, Irvine
License:3-clause BSD



The Akima module is no longer being actively developed.

Consider using scipy.interpolate.Akima1DInterpolator instead.


  1. A new method of interpolation and smooth curve fitting based on local procedures. Hiroshi Akima, J. ACM, October 1970, 17(4), 589-602.


>>> from scipy.interpolate import Akima1DInterpolator
>>> def example():
...     '''Plot interpolated Gaussian noise.'''
...     x = numpy.sort(numpy.random.random(10) * 100)
...     y = numpy.random.normal(0.0, 0.1, size=len(x))
...     x2 = numpy.arange(x[0], x[-1], 0.05)
...     y2 = interpolate(x, y, x2)
...     y3 = Akima1DInterpolator(x, y)(x2)
...     from matplotlib import pyplot
...     pyplot.title('Akima interpolation of Gaussian noise')
...     pyplot.plot(x2, y2, 'r-', label='akima')
...     pyplot.plot(x2, y3, 'b:', label='scipy', linewidth=2.5)
...     pyplot.plot(x, y, 'go', label='data')
...     pyplot.legend()
>>> example()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
akima-2019.2.20-cp27-cp27m-win32.whl (12.8 kB) Copy SHA256 hash SHA256 Wheel cp27
akima-2019.2.20-cp27-cp27m-win_amd64.whl (12.8 kB) Copy SHA256 hash SHA256 Wheel cp27
akima-2019.2.20-cp35-cp35m-win32.whl (14.1 kB) Copy SHA256 hash SHA256 Wheel cp35
akima-2019.2.20-cp35-cp35m-win_amd64.whl (15.2 kB) Copy SHA256 hash SHA256 Wheel cp35
akima-2019.2.20-cp36-cp36m-win32.whl (14.1 kB) Copy SHA256 hash SHA256 Wheel cp36
akima-2019.2.20-cp36-cp36m-win_amd64.whl (15.2 kB) Copy SHA256 hash SHA256 Wheel cp36
akima-2019.2.20-cp37-cp37m-win32.whl (14.1 kB) Copy SHA256 hash SHA256 Wheel cp37
akima-2019.2.20-cp37-cp37m-win_amd64.whl (15.3 kB) Copy SHA256 hash SHA256 Wheel cp37
akima-2019.2.20.tar.gz (8.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page