I have a problem with the alignment of 2 plots. The Problem is I want the captions to be horizontal aligned. Also the x-axis should be horizontal aligned!
Is there a way to do that?
\begin{figure}[!h]\centering
\subcaptionbox{Plot 1 \label{fig:ufMna}}{
\begin{tikzpicture}[baseline,xscale=10,yscale=10]
\draw [<->, thick] (0,0.5)node[left]{$U$} -- (0,0) -- (0.5,0) node[below]{$f$};
\draw[blue, ultra thick](0,0)--(0.25,0.25) --(0.4,0.25);
\draw[dashed] (0,0.25)node[left]{$U_{max}$} -- (0.25,0.25);
\end{tikzpicture}
}
\subcaptionbox{Plot 2 \label{fig:ufMnb}}{
\begin{tikzpicture}[baseline,xscale=10,yscale=10]
\draw [<->, thick] (0,0.5)node[left]{$M$} -- (0,0) -- (0.5,0) node[below]{$n$};
\draw[blue, ultra thick, ] (0,0.25)--(0.25,0.25)--(0.4,0.05);
\end{tikzpicture}
}
\caption{Showing 2 Plots}
\label{fig:ufMn}
\end{figure}
