# How to zoom (and apply grid on) subfigures [closed]

So I have folders containing triplets of images which all have the same style as shown in an example below

It is basically an automatically generated image and a color-bar besides it. I want to display triplets of images in my LaTeX document with a single color-bar - this is easily achievable using subfloats

\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[trim = 21mm 22mm 38mm 14mm, clip]{img/batch01/dist01}
\caption{$r=1$}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[trim = 21mm 22mm 38mm 14mm, clip]{img/batch01/dist02}
\caption{$r=11$}
\end{subfigure}\hspace{20pt}
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[trim = 21mm 22mm 23mm 14mm, clip]{img/batch01/dist03}
\caption{$r=21$}
\end{subfigure}
\caption{Distances ...}
\end{figure}


But how should I make my life easier if I want to zoom in the data? Let's say to show only the middle 9-th of the square like this

The example above was created using photo editing software. Unfortunately it would take a ridiculous amount of time for me to create them all like that.

What would you suggest? Maybe it is even possible to apply some kind of a grid to make individual pixels more distinctive (not sure about this one, may be too complicated and not worth it).

## closed as off-topic by Bobyandbob, Zarko, Stefan Pinnow, Mensch, Phelype OleinikFeb 9 '18 at 22:40

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• \includegraphics provides a scale option. To zoom your picture, you may use this scale option combined with clip and trim options (and adapted values). – Paul Gaborit May 23 '14 at 6:30
• @Pranasas did Paul's suggestions help you to solve this? – Paul Gessler Jan 11 '15 at 23:24
• I'm voting to close this question as off-topic because inactive questioner. – Bobyandbob Feb 9 '18 at 21:19