Graphics, Figures & TablesHow to magnify (Zoom in the graph)

Information and discussion about graphics, figures & tables in LaTeX documents.
Azzam
Posts: 6
Joined: Fri Jun 16, 2017 4:34 pm

How to magnify (Zoom in the graph)

Post by Azzam »

Hi all,

I am a beginner in latex, and I would be grateful if someone can help me to do this issue. I am having a graph and I want to zoom in a specific part of it. I have seen many threads about this issue but I am confused about it.
Thanks in advance

Code: Select all

\documentclass[journal]{IEEEtran}
\usepackage{cite}
\usepackage[pdftex]{graphicx}
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{multirow}

\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=88 mm]{Figure6}
\caption{ Stability circles for different load points in area close to 50 ohm on a smith chart}
\label{Figure6:Stability circles for different load points in area close to 50 ohm on a smith chart}
\end{figure}%
\end{document}%
BR
Azzam
Attachments
zoom in.PNG
zoom in.PNG (2.67 KiB) Viewed 34174 times
Figure6.pdf
(85.1 KiB) Downloaded 739 times
Last edited by Stefan Kottwitz on Fri Jun 16, 2017 6:13 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
Stefan Kottwitz
Site Admin
Posts: 10315
Joined: Mon Mar 10, 2008 9:44 pm

How to magnify (Zoom in the graph)

Post by Stefan Kottwitz »

Hi Azzam,

welcome to the forum!

You can trim and clip the image, such as:

\includegraphics[width=88 mm,trim={8cm 14cm 8cm 6cm},clip]{Figure6}

Stefan
LaTeX.org admin
Azzam
Posts: 6
Joined: Fri Jun 16, 2017 4:34 pm

HOw to magnify (Zoom in the graph)

Post by Azzam »

Hi Stefan,

Thanks for your feedback, actually I want to magnify the specific plot inside the plot and not to trim it. Any idea? thanks in advance
User avatar
Stefan Kottwitz
Site Admin
Posts: 10315
Joined: Mon Mar 10, 2008 9:44 pm

How to magnify (Zoom in the graph)

Post by Stefan Kottwitz »

Then magnify by other options without clipping, such as

\includegraphics[width=12cm]{Figure6}

or

\includegraphics[scale=2]{Figure6}

Stefan
LaTeX.org admin
Azzam
Posts: 6
Joined: Fri Jun 16, 2017 4:34 pm

HOw to magnify (Zoom in the graph)

Post by Azzam »

Dear stefan,

Please bear my ignorance. I tried what you have mentioned. but what I want is similar to the attached file.

Sorry for any inconvenience
Attachments
magnify.PNG
magnify.PNG (46.39 KiB) Viewed 34146 times
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

HOw to magnify (Zoom in the graph)

Post by mas »

What you are looking for is inset picture in a picture. See if this link helps you.

https://tex.stackexchange.com/questions ... lots#18720

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Azzam
Posts: 6
Joined: Fri Jun 16, 2017 4:34 pm

HOw to magnify (Zoom in the graph)

Post by Azzam »

Hi Mas,

Yeah, that's what I want to is to insert a graph(.pdf) as mentioned in the attached first post, then I wante to generate a large plot inside it, showing a zoom on a region of the large plot(.Png). I have inserted the code within this issue. Can you do me a favour and write down for me.Thank in advance
User avatar
Stefan Kottwitz
Site Admin
Posts: 10315
Joined: Mon Mar 10, 2008 9:44 pm

HOw to magnify (Zoom in the graph)

Post by Stefan Kottwitz »

Is the plot generated with LaTeX, such as by TikZ or pgfplots? Then it may be easy.
Extracting and magnifying and external plot (such as made by Mathematica or Matlab) is more difficult.

Stefan
LaTeX.org admin
Azzam
Posts: 6
Joined: Fri Jun 16, 2017 4:34 pm

HOw to magnify (Zoom in the graph)

Post by Azzam »

OOH, I see. That's mean I can not do it.!! Thanks for this clarification

Best regards
User avatar
Stefan Kottwitz
Site Admin
Posts: 10315
Joined: Mon Mar 10, 2008 9:44 pm

How to magnify (Zoom in the graph)

Post by Stefan Kottwitz »

Perhaps we can help to generate the plot with native LaTeX. It will look better anyway. pgfplots is extremely capable (see pgfplots gallery).

What is your plot code?

Stefan
LaTeX.org admin
Post Reply