How do I add a text beside a figure and still have the figure align? I tried using the \includegraphics[left] and \includegraphics[right] commands but you can see the figures and text are still not aligned.
I am following the solution here Syntax similar to \centering for right and left?
\begin{figure*}
\centering
\subfloat{
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {Left Hand \includegraphics[width=0.9\textwidth,height=0.02\textwidth,trim={0 0 0 0},clip,left]{figures/qualitative/segmentation-l.png}};
\end{tikzpicture}}
\subfloat{
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {Right Hand \includegraphics[width=0.9\textwidth,height=0.02\textwidth,trim={0 0 0 0},clip,left]{figures/qualitative/segmentation-r.png}};
\end{tikzpicture}}
\end{figure*}


leftto do, you can not just make up key names and expect they do something.\includegraphicsis positioned in exactly the way a letter is positioned,Left hand Xhas X to the right of the textX Left handhas X to the left, same is true if you replaceXby\includegraphicsexcept you havewidth=0.9\textwidthso there is hardly any space for text. – David Carlisle Aug 07 '22 at 17:34