Graphics, Figures & TablesMultirow image floating too low

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
barnhillec
Posts: 1
Joined: Fri Aug 17, 2012 4:44 pm

Multirow image floating too low

Post by barnhillec »

Greetings, first post.

I have set up what seems to me a pretty straightforward table, with a 2-row image of height 4 cm followed by 2 rows of images of height 2cm. However my document starts the multi-row image very low and it ends up covering the caption. I am wondering if there is an obvious reason why this table does not line up right that I cannot see. If it helps I can post a pic of the current situation as rendered in pdflatex too...but would have to take it back down rather quickly as it's an image for an upcoming scientific conference.

Code: Select all

\begin{figure}
   \begin{center}
   \begin{tabular}{c|c|c|c|c|c|c}
	\multirow{2}{*}{\includegraphics[height=4cm]{vastus-mask.png}} &
	\includegraphics[height=2cm]{control-movie-medialis/vastus-1.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-2.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-3.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-4.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-5.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-6.png}\\
	& \includegraphics[height=2cm]{control-movie-medialis/vastus-7.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-8.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-9.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-10.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-11.png} &
		\includegraphics[height=2cm]{control-movie-medialis/vastus-12.png}\\
   \end{tabular}
   \end{center}
   \caption[vastus] 
   { \label{fig:vastus} Vastus muscle of same subject across multiple acquisitions.}
\end{figure} 
Thanks for any help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Multirow image floating too low

Post by Stefan Kottwitz »

Hi,

welcome to the board!

In such cases you could simply use a dummy image of the same size, or make one as a placeholder by \rule, such as \rule{2cm}{2cm}, or even simpler load graphicx with demo option:

Code: Select all

\usepackage[demo]{graphicx}
Just note, that posting compilable test code improves the chance to get a working solution.

In your code, you could fix it using an optional argument for vertical adjustment, such as:

Code: Select all

\multirow{2}{*}[1.7cm]{\includegraphics[height=4cm]{vastus-mask.png}} &
Stefan
LaTeX.org admin
Post Reply