I'm preparing figures for a paper. The following command gives me a figure like this:
The question is I only need one colorbar. So the right colorbar should be delete.
I've tried to delete the colorbar of the right image in MATLAB. But it will give me an image larger than the left one. And it's difficult to make them same.
I was wondering whether there is a way to hide the colorbar of the right image just like the crop operator in word.
Thank you so much.
\documentclass[a4paper,varwidth]{standalone}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\thispagestyle{empty}
\begin{document}
\begin{figure}
\begin{subfigure}{.33\textwidth}
\includegraphics[width=\linewidth]{uxfea.eps}
\end{subfigure}
\begin{subfigure}{.33\textwidth}
\includegraphics[width=\linewidth]{ux800cub04.eps}
\end{subfigure}
\end{figure}
\end{document}
%%BoundingBoxcomment in the EPS file (unit is bp). Then the correct parameters for thesubfigurewidth can be calculated to get the same scaling factors. Also an option is usingscaleinstead ofwidthin\includegraphicsto set and get the same scaling factor. – Heiko Oberdiek Jun 27 '15 at 05:11