# Figure is placed in a wrong position [duplicate]

I have read many threads regarding misplaced floats in LaTex, however, I haven't found a satisfactory answer yet. As shown by the code segment, Fig 1 is supposed to be after the "In order to test ..." paragraph and before the "Using the digital ..." paragraph. However, when it is placed in some random location in between the text of the paragraphs. Any help is appreciated.

\documentclass[aps,reprint,nofootinbib]{revtex4-1}
\usepackage{graphicx}
\usepackage{gensymb}
\usepackage[section]{placeins}
.
.
.
In order to test...

\begin{figure}[h]
\includegraphics[scale=0.65]{1}
\caption{Circuit used to test Kirchhoff's laws.}
\end{figure}

Using the digital...


EDIT: I just noticed that the location at which the figure is supposed to be is too small. However, shouldn't the placeins package take care of this issue? Essentially what LaTex is doing is filling that otherwise empty space with the text of the next paragraph, the one which is supposed to come after the figure.

## marked as duplicate by Werner floats StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Nov 14 '16 at 5:38

• Floats float. Don't put it in a figure environment. placeins with section will stop it floating into another section. It won't stop it floating within a section. A figure is designed to float. That is what it does. It is its raison d'être, its essential being, its purpose in life. You don't have to use a figure. If you don't want one, just don't use one. – cfr Nov 14 '16 at 4:04
\usepackage{float} And then say \begin{figure}[H]