Browse Source

Interpolation is only quadratic and cubic

pull/71/head
Guillaume Ayoub 12 years ago
parent
commit
b856eb85e4
  1. 16
      pages/interpolations.rst

16
pages/interpolations.rst

@ -12,18 +12,8 @@ Interpolations
Interpolations need the `scipy python module <http://www.scipy.org/>`_.
To enable it just specify the interpolation type to:
- linear
- nearest
- zero
- slinear
- quadratic
- cubic
- krogh
- barycentric
- univariate
- or an integer representing the order of the spline interpolator
For more info see `interp1d definition on scipy <http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html#scipy.interpolate.interp1d>`_
Without interpolation:
@ -53,7 +43,7 @@ With krogh interpolation:
.. pygal-code::
chart = pygal.Line(interpolate='krogh')
chart = pygal.Line(interpolate='quadratic')
chart.add('line', [1, 5, 17, 12, 5, 10])
@ -67,12 +57,12 @@ You can change the resolution of the interpolation with the help of `interpolati
.. pygal-code::
chart = pygal.Line(interpolate='krogh', interpolation_precision=15)
chart = pygal.Line(interpolate='quadratic')
chart.add('line', [1, 5, 17, 12, 5, 10])
.. pygal-code::
chart = pygal.Line(interpolate='krogh', interpolation_precision=50)
chart = pygal.Line(interpolate='quadratic', interpolation_precision=50)
chart.add('line', [1, 5, 17, 12, 5, 10])

Loading…
Cancel
Save