Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I made a figure that displays 2x3 images. However, I would like the whole figure, except the caption, to be rotated for 90 degrees. Here is the code that I tried to adjust by 'rotatebox' command:

\begin{figure}[]        
 \centering
 \rotatebox{90} {            
  \subfigure[]{\includegraphics[width=0.34\textwidth]{a.pdf}}
\subfigure[]{\includegraphics[width=0.32\textwidth]{b.pdf}}
\subfigure[]{\includegraphics[width=0.28\textwidth]{c.pdf}}   
\subfigure[]{\includegraphics[width=0.32\textwidth]{d.pdf}}
\subfigure[]{\includegraphics[width=0.33\textwidth]{e.pdf}}
\subfigure[]{\includegraphics[width=0.32\textwidth]{f.pdf}} 
} 
\caption{ myCaption    
    } 
\end{figure}

The above code displays pictures rotated, by aligned in only 1 column, one after another. I tried placing '\\' after c.pdf, but it reported error "Something is missing". What would be the way to obtain a 2x3 figure rotated for 90 degrees?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

Try rotating three images at a time:

\documentclass[11pt]{article}
\usepackage[demo]{graphicx}
\usepackage{subfigure}
%
\begin{document}
%
\begin{figure}[]
 \centering
 \rotatebox{90} {%
 \subfigure[]{\includegraphics[width=0.34\textwidth]{a.pdf}}
\subfigure[]{\includegraphics[width=0.32\textwidth]{b.pdf}}
\subfigure[]{\includegraphics[width=0.28\textwidth]{c.pdf}}
}%
\rotatebox{90} {%
\subfigure[]{\includegraphics[width=0.32\textwidth]{d.pdf}}
\subfigure[]{\includegraphics[width=0.33\textwidth]{e.pdf}}
\subfigure[]{\includegraphics[width=0.32\textwidth]{f.pdf}}
}%
\caption{myCaption}
\end{figure}
\end{document}

enter image description here

Note: Instead of using subfigure, it is better to use subfig package.

share|improve this answer
add comment

probably easiest is

\rotatebox{90}{\begin{tabular}{ll}
\includegraphics{}&\includegraphics{}\\
\includegraphics{}&\includegraphics{}\\
\includegraphics{}&\includegraphics{}\end{tabular}}

\caption{...}
share|improve this answer
    
In my setting, it would be '\begin{tabular}{lll}', with the adjustment in the alignment with '\includegraphics'. Then it works. –  boy May 25 '12 at 9:48
add comment

You shouldn't be using the obsolete package subfigure, but subfig and the \subfloat command.

\documentclass{article}
\usepackage{subfig}
\usepackage[demo]{graphicx} % [demo] is just for demo purposes
\begin{document}
\begin{figure}
\centering
\rotatebox{90} {%
\begin{minipage}{12cm} % choose the size you prefer
\centering
\subfloat[]{\includegraphics[width=0.34\textwidth]{a.pdf}}\,
\subfloat[]{\includegraphics[width=0.32\textwidth]{b.pdf}}\,
\subfloat[]{\includegraphics[width=0.28\textwidth]{c.pdf}}\\
\subfloat[]{\includegraphics[width=0.32\textwidth]{d.pdf}}\,
\subfloat[]{\includegraphics[width=0.33\textwidth]{e.pdf}}\,
\subfloat[]{\includegraphics[width=0.32\textwidth]{f.pdf}}
\end{minipage}}
\caption{myCaption}
\end{figure}
\end{document}

The problem was that \rotatebox doesn't allow line breaks in it; including a minipage solves the problem.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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