0

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

  • 1
    Welcome to TeX.SX! Why do you use tikzpicture for \includegraphics? – TeXnician Feb 8 '17 at 10:53
  • Thanks for having me ;) I just found this as working way to produce a side ways image? – Sebastiano1991 Feb 8 '17 at 10:55
  • Why don't you just use \includegraphics? – TeXnician Feb 8 '17 at 10:57
  • How stupid ! Yes commenting out the \tikzpicture did the trick! I thought it was needed for the sidewaysfigure... must have missunderstood that other stack... thanks! – Sebastiano1991 Feb 8 '17 at 10:59
  • 1
    The tikzpicture is unnecessary in your example, but is not the main problem. There are cases where a tikzpicture is quite usefull, e.g to add some decoration to the picture. But then you should put the graphic in a node: \node{\includegraphics[width=\textwidth] {example-image-a}}; so that the tikzpicture has the correct size. – Ulrike Fischer Feb 8 '17 at 11:32
1

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.