Could someone please explain to me why the figure in my code is not appearing when I compile the code thanks.
MY CODE:
\documentclass{article}
\usepackage{tikz,hyperref,multicol,lipsum,geometry,titlesec,fancyhdr,amsmath,MnSymbol,wasysym,fleqn}%
\fancyhf{}% Clear all headers/footers
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{0.4pt}% No footer rule
\fancyfoot[L]{*\href{myemail}{\emph{myemail}}}%
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\titleformat{\section}
{\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}
\geometry{margin=1in}
\title{Title}
\author{\textbf{myname}*}
\begin{document}
\maketitle
\begin{abstract}
Abstract
\end{abstract}
\begin{multicols}{2}
\thispagestyle{fancy}%
\section{Introdution}
some writing
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel=$\mu(x)$
]
% invoke external gnuplot as
% calculator:
\addplot[smooth,samples=180,domain=0.0001:20] {1/(1+(1/x))};
\end{axis}
\end{tikzpicture}
\end{figure}
some writing
\end{multicols}
\end{document}

Package multicol Warning: Floats and marginpars not allowed inside \multicols' environment!.` and that's the answer, multicol doesn't support figure. – David Carlisle Feb 17 '15 at 01:46\captionof{figure}{zzzz}(capt-ofpackage) under thetikzpicture– David Carlisle Feb 17 '15 at 01:54