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)?

enter image description here

Tags : diagrams plot


Answers 1


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} 

enter image description here

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

Related Questions


How to draw interlocking tori with Tikz?

Updated May 25, 2015 22:10 PM


How to create an inverted U graph?

Updated March 22, 2017 10:23 AM

Help with economics graph

Updated September 04, 2018 17:23 PM