As a commenter has pointed out, it's strange that you are manually entering the caption. More common practice is to do something like this:
\newcommand\FanoPlane[1][1cm]{%
\begin{tikzpicture}[
mydot/.style={
draw,
circle,
fill=black,
inner sep=3pt}
]
\draw
(0,0) coordinate (A) --
(#1,0) coordinate (B) --
($ (A)!.5!(B) ! {sin(60)*2} ! 90:(B) $) coordinate (C) -- cycle;
\coordinate (O) at
(barycentric cs:A=1,B=1,C=1);
\draw (O) circle [radius=#1*1.717/6];
\draw (C) -- ($ (A)!.5!(B) $) coordinate (LC);
\draw (A) -- ($ (B)!.5!(C) $) coordinate (LA);
\draw (B) -- ($ (C)!.5!(A) $) coordinate (LB);
\foreach \Nodo in {A,B,C,O,LC,LA,LB}
\node[mydot] at (\Nodo) {};
\end{tikzpicture}%
}
\begin{figure}
\centering
\quad\FanoPlane[5cm]
\caption{Fano Hypergraph}\label{fig:figurelabel}
\end{figure}
Which will place the tikz picture in a figure and center the figure contents.
PS: If you want for the picture to be placed RIGHT THERE in the text with no floating there are two options:
Option 1: Use the t, b, h and H with ! switches to force the Latex to place the figure at top, bottom, here and RIGHT HERE.
\begin{figure}[h!]
figure code
\end{figure}
Will try to place the figure here. H will tend to ignore all the rules to place it there. TBH I'm not 100% on the exact algorithm that Latex uses to accomplish this.
If the above doesn't work, and you REALLY want to place something RIGHT THERE then you don't really want the floating bit so you shouldn't use the float environment. Instead use center like so:
\begin{center}
figure code
\captionof{figure}{Caption text}
\end{center}
This will force Latex to basically treat the image as text, which will mean things might not be pretty. But it will place it RIGHT THERE where you want it.
\caption/\captionof? – Torbjørn T. Nov 10 '17 at 13:01