[Tex/LaTex] How to put text next to an image

graphics

I have this:

\begin{figure}[!hb]
 \label{curve}
    \includegraphics[width=10cm, height=4cm]{images/smoothSinCurve.png}
\end{figure}

\begin{trivlist}  
\item \textcolor{orange}{Orange} is overdose
\item \textcolor{green}{Green} is underdose
\item \textcolor{blue}{Blue} is perfect dosage.
\end{trivlist}

And it looks like this:

enter image description here

How can I put them on the same line?

Best Answer

Something like this, perhaps?

\documentclass{article}
\usepackage[margin=1cm]{geometry}
\usepackage{graphicx,xcolor}
\begin{document}    
\begin{figure}[!hb]
\centering
 \label{curve}
    \includegraphics[width=10cm, height=4cm]{example-image}
\begin{minipage}[b]{1.4in}
\begin{trivlist}  
\item \textcolor{orange}{Orange} is overdose
\item \textcolor{green}{Green} is underdose
\item \textcolor{blue}{Blue} is perfect dosage.
\end{trivlist}
\end{minipage}
\end{figure}

\end{document}

enter image description here