[Tex/LaTex] sidewaysfigure in two column document span whole page

floatsrotating

Hello I would like a sideways figure to span a whole page in a two column artikel. The problem is that the solutions I have found either fit a none rotated figure to a two column page or only rotates the image in a onecloumn document.

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{rotating}
\usepackage{tikz}

%Awesome twocolumn text....

\onecolumn
\begin{sidewaysfigure*}[h]
    \centering
    \begin{tikzpicture}[scale=4]
    \includegraphics[width=\textwidth]  {/home/sebastiano/Documents/Data/plots/3binNoCorrected.png}
    \end{tikzpicture}
    \caption{All light curves from all available datasets}
    \label{allLightCurves}
\end{sidewaysfigure*}

But this still remembers the twocolumn even if they are turned off.

enter image description here

Best Answer

A solution for your problem is to just remove the unnecessary tikzpicture.

sideways

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{rotating}
\usepackage{tikz}

%Awesome twocolumn text....

\begin{document}

\onecolumn
\begin{sidewaysfigure*}[h]
    \centering
    \includegraphics[width=\textwidth] {example-image-a}
    \caption{All light curves from all available datasets}
    \label{allLightCurves}
\end{sidewaysfigure*}

\end{document}
Related Question