how to show two figures next to each other 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}

Tags:

Misc Example