Compare this to the US Dollar (below). There seems to be an inverse relationship between the level of the US Dollar and the rate of inflation in 2007, especially near the end.
In fact the rather large increase in inflation on this graph occurred whilst all the subprime stuff was hitting share markets in the US. So while the economy was beginning to contract, inflation increased. This is stagflation.