Graphics, Figures & TablesImage Placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jpphelan
Posts: 2
Joined: Mon Apr 02, 2012 3:33 pm

Image Placement

Post by jpphelan »

I am having issues with image placement in my report document. I have image figures in two seperate sections of the text, but the images place themselves in a section of the text, where no image is called.

Code: Select all

and the wind is not given a negative value, as direction is dealt with separately.
\begin{figure}
\begin{center}
\includegraphics[scale = 1]{Edge.png}
\caption{Movement through Weighted Graph}
\end{center}
\end{figure}
\paragraph{}
All preceding values are included in the summation of the shortest path to any node. As in the diagram above, the shortest path to the next edge $ V $ is the distance from the source to the current node $ C $, and the next node $ V $, plus the weight, or cost, to travel to that edge $ w2 $. This process is completed for all the reachable nodes in the map.



\section{Reachable Sections of the Course}
\paragraph{}
The use of the weighted graph with the information of wind included allows for an optimal path to be completed. Taking real time values for the wind, a section of the Irish sea from Co. Antrim to Scotland for the \date{9 January 2011}\cite{grib}. This set of data was chosen as the wind directions and strengths changed on a large enough scale to test the robustness of the programmed algorithm . Due to physical limitations some of the nodes were not reachable on the course, so were not included in the calculations.
This is the calling of the images, and the images are placed in this sentence,

Code: Select all

As in the diagram above, the shortest path to the next edge $ V $ is the distance from the source to the current node $ C $, and the next node $ V $, plus the

both images called above, appear here in the pdf

 weight, or cost, to travel to that edge $ w2 $. This process is completed for all the reachable nodes in the map.
Sorry for the convoluted post. I am under pressure to get the tex finished, and was unsure how to explain my predicament. All other images within the doc appear in the right place. If both image calls are removed, then the next image call in the tex is placed in that section of the pdf.

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

Image Placement

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Try setting options for {figure} placement. Further I recommend to use \centering instead of {center} within figure environments, to avoid additional vertical spacing.

You could change your example to:

Code: Select all

\begin{figure}[!htbp]
\centering
\includegraphics[scale = 1]{Edge.png}
\caption{Movement through Weighted Graph}
\end{figure}
Stefan
LaTeX.org admin
jpphelan
Posts: 2
Joined: Mon Apr 02, 2012 3:33 pm

Re: Image Placement

Post by jpphelan »

Fixed. Thank you very much. The sweating is now greatly reduced :D
Post Reply