# merging two plots as a one and sticking them

by Irreversible   Last Updated May 10, 2018 11:23 AM

How can I merge two (three) plots in a way that the vertical ticks of the next plot (a figure) be hidden by the previous plot (figure)? َand the final figure be referred in the text as a one figure (not two figures or sub_figures)?

Tags :

If the plots pre-exist as separate images...

Merely choose the same height for the two images, and play with the \kern to mask out the axis labels of the right-hand image.

\documentclass{article}
\usepackage{graphicx,stackengine}
\begin{document}
\begin{figure}[ht]
\centering
\stackengine{0pt}
{\kern120pt\includegraphics[height=1.5in]{example-image-b}}
{\includegraphics[height=1.5in]{example-image-a}}
{O}{l}{F}{F}{L}
\caption{This is one figure}
\end{figure}
\begin{figure}[ht]
\centering
\stackengine{0pt}
{\kern160pt\includegraphics[height=1in]{example-image-c}}
{\stackengine{0pt}
{\kern80pt\includegraphics[height=1in]{example-image-b}}
{\includegraphics[height=1in]{example-image-a}}
{O}{l}{F}{F}{L}}
{O}{l}{F}{F}{L}
\caption{This is one figure}
\end{figure}
\end{document}


Steven B. Segletes
May 10, 2018 11:02 AM