# Interpolation

## Via SciPy

We can perform interpolation in Hist using SciPy.

```none
[1]:
```

```none
[2]:
```

```none
[2]:
```

### Linear 1-D

We can obtain a linear interpolation by passion the `kind="linear"` argument in [interpolate.interp1d()](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html).

```none
[3]:
```

```none
[4]:
```

### Cubic 1-D

We can obtain a cubic interpolation by passion the `kind="cubic"` argument in [interpolate.interp1d()](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html).

```none
[5]:
```

```none
[6]:
```

We can also plot them both together to compare the interpolations.

```none
[7]:
```
