# xaphirecipes

recipes for all the small things in life …

## Rotate images on the page and subfigures

If you want to rotate your image by plus/minus 90° on the page (with the caption), you can use the sidewayfigure environment:

\usepackage{rotating} \begin{sidewaysfigure}[htbp] \begin{center} \subfigure[3D plot]{\includegraphics[width=0.5\textwidth]{img/5.0-app/feedback-control/xyz}}% \subfigure[x-y plot]{\includegraphics[width=0.5\textwidth]{img/5.0-app/feedback-control/xy}}\\ \subfigure[x-z plot]{\includegraphics[width=0.5\textwidth]{img/5.0-app/feedback-control/xz}}% \subfigure[y-z plot]{\includegraphics[width=0.5\textwidth]{img/5.0-app/feedback-control/yz}}\\ \caption{\textbf{Trajectories of the feedback control system.} These are the trajectories of the system in formula \vref{feedback-control-ODE-5.0} at the initial state $(0.1,0.1,0)$. For $a &lt; 1$ (blue) the equilibrium is unstable and a stable limit cycle surrounds it. In this case the dynamics of the periodic orbit is much more complicated than the Hopf normal form. For $a &gt; 1$ (red) the equilibrium is stable.} \label{feedback-control-allplot-5.0} \end{center} \end{sidewaysfigure}

This is how it looks like:

The sidewayfigure environment

In this example I have combined the sub figures with the sidewaysfigure environment. It is also possible to rotate table with \begin{sidewaystable}.