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.

This question already has an answer here:

\begin{figure}[p]

\centering
\includegraphics[width=1.3\textwidth, angle =90 ]{Graphs/1.png}
\caption{Box plot of number of positions sent per iteration using this scheme}
\label{fig:awesome_image}

\end{figure}

what this does is it rotates the figure as I want to...so now my Y axis is parallel to the shorter edge of my A4 sheet...but my caption is still parallel to the shorter edge of my sheet...how do I make the caption follow the figure and be parallel to the large edge of my sheet?

share|improve this question
1  
rotating package and sidewaysfigure –  David Carlisle Mar 9 '13 at 15:11
add comment

marked as duplicate by Werner, Kurt, Stephen, mafp, Charles Stewart Mar 9 '13 at 16:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

The rotating package introduces a sidewaysfigure environment that lends itself well to that:

\documentclass{article}

\usepackage{rotating}
\usepackage{tikz}

\begin{document}

\begin{sidewaysfigure}
    \centering
    \begin{tikzpicture}[scale=4]
        \fill[blue] (0,0) rectangle(2,1.5);  
    \end{tikzpicture}
    \caption{Box plot of number of positions sent per iteration using this scheme}
    \label{fig:awesome_image}
\end{sidewaysfigure}

\end{document}

enter image description here

share|improve this answer
    
There's no need to specify the [p] ("page by itself") location directive when starting the sidewaysfigure environment: The figure will be placed automatically on a page by itself. –  Mico Mar 9 '13 at 16:08
    
@Mico Ok. Fixed. –  Jubobs Mar 9 '13 at 16:09
add comment

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