Below is the graph of a trigonometric function. It has a maximum point at $\left(-\pi,6.8\right)$ and a minimum point at $\left(\pi,1.2\right)$.

**What is the period of the function? Give an exact value.**
[[☃ expression 1]] units