.. _General-polynomial_fit:


Fitting a polynomial
====================

This example demonstrates computing a polynomial fit to 1D data from an Iris
cube, adding the fit to the cube's metadata, and plotting both the 1D data and
the fit.



.. plot:: examples/General/polynomial_fit.py
    :include-source:

