how to put two figures beside each other in latex code example
Example: figures in latex side by side
\documentclass{article}\usepackage{graphicx}\begin{document}\begin{figure}[!tbp] \centering \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower1.jpg} \caption{Flower one.} \end{minipage} \hfill \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower2.jpg} \caption{Flower two.} \end{minipage}\end{figure}\end{document}