# Figure positions and sizing

I have the following figure code :

\begin{figure}[h]
\centering
\includegraphics[scale=.7,bb=0 0 804 401]{f5.png}
\label{fig:f5}
\end{figure}


Even though this figure is not at the end of the document, it is not appear as it supposed to be. Instead, it comes at the end of the document!

One more thing, why do I have to use the bb parameters for the PNG images? Is there any work around?

-
Have you tried [!h]? The placeins package provides the command \FloatBarrier which can also be helpful. Keeping tables and figures close to where they are mentioned is a pretty definitive guide – cmhughes Feb 6 '12 at 2:31
What happens if you just leave the bb parameter? – Jake Feb 6 '12 at 2:35
I assume your choice of scale=.7 is because the resulting image seems to fit within the text block. Is this in fact the case? Do you have any "Overfull \hbox" warnings in your .log? I would suggest using width=\textwidth instead, rather than guessing the scaling factor. – Werner Feb 6 '12 at 5:16
Have a look at: tex.stackexchange.com/questions/39017/… – Marco Daniel Feb 6 '12 at 9:54
!htbp works fine , but it makes a gap ~4 lines before the figure !! – M.M Feb 6 '12 at 10:19