[Tex/LaTex] How to align two diagrams on the same line


I would like to know how can I put two diagrams on the same like rather than one of the top and one at the bottom. which consumed too much space on the paper. Here are the codes for the figure which I used.

     \caption{Interpolation for Data 1}

     \caption{Interpolation for Data 2}

Best Answer

\usepackage[demo]{graphicx}% delete [demo] later

     \caption{Interpolation for Data 1}\label{Fig:Data1}
   \begin {minipage}{0.49\textwidth}
     \caption{Interpolation for Data 2}\label{Fig:Data2}


put them in one figure environment without an empty line between. The % is important here.

Related Question