# spy's questions - English 1answer

42 spy questions.

### 9 Using TikZ spy in 3D

2 answers, 479 views tikz-pgf 3d spy
I am trying to use the spy library to magnify part of a 3D TikZ drawing. Consider this minimal example: \documentclass[tikz,margin=0.5cm]{standalone} \usetikzlibrary{3d,spy} \begin{document} \begin{...

### 2 How to inset an image on top of the magnified portion in LaTeX?

1 answers, 77 views tikz-pgf spy zooming
I want to magnify an image in LaTeX such that the original image is visible inside the zoomed portion. If I use the spy library then zoomed portion is always on top. I could not find how the magnified ...

### 6 Why triangle's corners are sticking out instead of aligning perfectly with adjacent triangles?

So I drew a few isosceles triangles aligned to each other with one being upside down but that upside down triangle created unwanted behavior (its corners started sticking out of line). All these ...

### 5 How to write only in the magnified area with spy

1 answers, 271 views tikz-pgf spy
I would like add lot of comment only in magnified area, but I dont know how to do it. Could you help me please. THX \documentclass[french,a4paper]{article} \usepackage[usenames,dvipsnames]{xcolor} \...

### 2 Spy functionality with different scaling for each axis

0 answers, 146 views tikz-pgf pgfplots spy
I would like to have a spy functionality that doesn't scale the linewidth and of which the scaling of each axis can be controlled separately. The MWE is based on these questions: Using tikzlibrary ...

### 1 Spy on a tikz plot generated by tikzDevice

0 answers, 95 views tikz-pgf spy
I'd like to magnify a certain part of the plot (marked in the picture) using the tikz spy package. The code was generated by tikzDevice package for R. Every time I try to insert \spy, I get undefined ...

### 1 Drawing arrows between content copied with Spy

1 answers, 74 views tikz-pgf nodes spy
I have a diagram made in TiKZ (with copied/mirrored parts using Spy). It looks like this: This was created with the following code: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{...

### 2 TikZ spy library resets line properties, e.g. line join, line width, etc

1 answers, 156 views tikz-pgf spy
When using the TikZ spy library in a tikzpicture it “forgets” the line properties, e.g. line join, set previously. I have looked into the spy library code (at pgf/pgf/generic/pgf/frontendlayer/tikz/...

### 2 Tikz (spy and background) libraries with etex and pgfplots packages in beamer

1 answers, 146 views tikz-pgf pgfplots backgrounds e-tex spy
I am working at a quite complicated beamer presentation and at some point I could not manage to use the \spy command of TikZ as desired. Trying to reproduce the problem, I came up with the ...

### 1 How to get Tikz to get the color of an image pixel

1 answers, 96 views tikz-pgf graphics tikz-styles spy
I am drawing on top of an image that has been included with \includegraphics using TikZ. I would like to be able to control the color of a line, text, node etc based on the color of the pixels of the ...

### 3 How to name a spypoint in a tikzfigure to access it via node name

2 answers, 106 views tikz-pgf pgfplots spy
I want to access two spypoints in a tikzpicture environment via node name. Unfortunately, naming the spypoint doesn't seem to work in the same way as it does for the magnifyglass node. Here is my MWE:...

### 2 Spy glasses in a group plot

1 answers, 254 views tikz-pgf pgfplots groupplots spy
I have a group plot in which the graphs have common x axis and are stacked one over the other- like the one givenhere. Now, I want to have a spy glass on each of these plots in the group. But when I ...

### 3 How to exclude items from a TikZ Spy

0 answers, 237 views tikz-pgf pgfplots spy
Somewhat related to this question, I would like to exclude items from the magnified area. In the example below, I do not want the pin lines or the orange line to appear in the magnified area. Is ...

### 13 Plot with magnifying glass, with a different plot in it

1 answers, 790 views pgfplots plot spy
I would like to magnify a function plot, but in the magnified area I would like to draw a different plot. As an example, I edited an image taken from another discussion on TeX Stack Exchange I have ...

### 7 Tikz spy - empty zoom with pdflatex

1 answers, 423 views tikz-pgf pdftex spy
I have issues getting the spy library to work on my current installation. I am running TeXmaker with MikTeX 2.9 (with all packages updated) on Win8.1x64. I read about the issues others are having ...

### 13 How do I zoom a rectangle area in pgfplots adding a gray background even for the axis labels?

1 answers, 3.201 views tikz-pgf pgfplots spy zooming
The background to this question is: I want to "zoom" into a certain area of a function and show it a little bigger. Furthermore, I want to put a gray rectangle as a background of the zoomed area, ...

### 1 Tikz spy makes move hyperref links [closed]

0 answers, 85 views tikz-pgf pgfplots hyperref spy
I have some troubles with the Tikz library spy. When I use the spy, it creates a new hyperref link at a new position. Thus there is 2 links where only one is wanted (see the image with 2 cyan box link)...

### 4 Undefined control sequence error in using spy TikZ library

2 answers, 1.202 views tikz-pgf errors spy
My minimal working example is as follows. \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{spy} %\usepackage[font=normal,...

### 4 Can't spy with overlay, remember picture options

1 answers, 341 views tikz-pgf spy
\documentclass{article} \usepackage{tikz} \usetikzlibrary{spy} \begin{document} \begin{tikzpicture}[remember picture,overlay,spy using overlays={connect spies,blue!50}] \node(a)[circle]{Text}; \...

### 3 use axis of original plot in \spy plot

1 answers, 749 views tikz-pgf pgfplots spy
I use \spy in an plot. This works generally, but I want the axis in my magnification too. I attach a picture to clarify. I do not want to do this with a \node and manually calculate and add the axis ...

### 5 Why is the TikZ Spy coordinate system different than for the rectangle's?

1 answers, 458 views tikz-pgf spy
Problem I copied some code from here and here and combined the best parts for my work. I am wondering why the coordinates for my rectangle are in percentages of the image while the coordinates of the ...

### 5 Use tikz spy in a scope in order to relatively adress points in two images/scopes

2 answers, 539 views tikz-pgf spy
I am continuing the example I started here, and want to have two images in one picture being positioned relative to each other and using two scopes for the ´spies´. The following MWE includes a first ...

### 2 Why does the definition of a spy scope imply a change in the foreground color?

1 answers, 312 views tikz-pgf color spy
I noticed that the foreground color changes when adding a spy scope to my tikzpicture. Compare: \documentclass[]{beamer} \usepackage{tikz} ...

### 8 Magnify text using spy library

1 answers, 1.414 views tikz-pgf spy
I have this information generated using tikz code. I want to magnify some part of the text using the spy tikzlibrary, but I am unable to do it. I want to magnify this part of the whole text 4.96 ...

### 5 Tikz Spy, different image magnified?

1 answers, 857 views tikz-pgf spy
I'm using tikz library spy to zoom into an image. The image Im zooming into is a binary black and white image. But i want the circle with the magnified part to be filled with a color version of the ...

### 2 Using the TikZ spy library to spy on a pixel value in beamer [closed]

0 answers, 455 views tikz-pgf beamer spy
I tried to use the TikZlibrary spy to zoom in on a certain pixel image; I am drawing in the image using a scope and red about the problem concerning coordinates in scopes here Magnify part of picture ...

### 4 TikZ: How to scale the spy box with the tikzpicture?

1 answers, 2.139 views tikz-pgf spy
With the help of How do I zoom a rectangle area in pgfplots adding a gray background even for the axis labels? and No content in zoom Tikz spy I have been able to get the most of what I want. Using ...

### 6 Magnify part of picture with TikZ spy, expressed in relative scoped coordinates

1 answers, 947 views tikz-pgf graphics spy
I want to magnify part of a picture with the TikZ spy library; however, with a scope for using relative coordinates like in #9561 Drawing on an image with TikZ. Provided I'm using the image tux.png - ...

### 5 How to add axes in a magnified part of a graph using spy?

1 answers, 1.363 views tikz-pgf pgfplots spy
My problem is the following. I would like to draw the (magnified) axes on the magnified area of spy. For instance, take the following example (from pgfplots.pdf, p.121): % Preamble: \pgfplotsset{...

### 4 How can I change the line width of the spy-on node in tikz spy library?

1 answers, 1.239 views tikz-pgf spy
is there an option to change the line width of the spy-on node, i.e. the node that appears on the image, in the tikz spy library?

### 2 Real Zoom in a plot [duplicate]

0 answers, 90 views tikz-pgf pgfplots spy
I was wondering if there are a mean to zoom in the plot, I know about spy library (PGFPlots) but this later tries only to scale the windowed area and get the raster bitmap after a stretch. Here, I am ...

### 8 Why does a tikz spy specified as a chamfered rectangle show up as a simple rectangle?

1 answers, 2.038 views tikz-pgf spy
I'd like to use a tikz spy shaped like a chamfered rectangle. The code runs without complaining, but the result is a plain rectangle. "rounded rectangle" works as expected, as does chamfered-rectangle-...

### 2 Magnified plot / Vertical Markers [duplicate]

0 answers, 228 views tikz-pgf pgfplots spy
I've been trying to use the spy library to magnify a part of my plot, but I don't really understand how it works, and I can't find a manual/tutorial anywhere. Right now I am doing something based on ...

### 5 TikZ: using the spy library to zoom in

1 answers, 4.770 views tikz-pgf spy
In this post How to zoom a portion of TiKZ picture?, Martin Scharrer demonstrates how use the spy library to zoom in on a portion of a TikZ picture. (1) Is it possible to construct separate lines, ...

### 5 Rectangular spy in pgfplots without scaling

1 answers, 1.424 views tikz-pgf pgfplots spy
I'm trying to copy the behaviour of this question: Using tikzlibrary spy without magnifying line width and/or mark size. I would like to change the shape of the spy to rectangle, but I'm failing at ...

### 5 Where can I find the TikZ spy package

1 answers, 1.192 views tikz-pgf spy
Where can I find the TikZ spy package? I found a great article here: How to create magnified subfigures and corresponding boxes for portions of a large image Even with Google and StackExchange search ...

### 11 Plot magnification using sub-plot within a plot!

1 answers, 1.575 views tikz-pgf pgfplots spy
How can I produce such kind of zooming shown in the figure? Here the selected portion is plotted again with new axis displaying more details than just magnifying the portion. One solution is to ...

### 16 Scalebar Overlay and TikZ spy

1 answers, 1.380 views tikz-pgf spy
This question uses code snippets from How to add a scalebar to an image and Drawing on an image with TikZ. I have an image with a scalebar (absolute positioning) overlay. Its length is determined by ...

### 14 Unexpected clash between babel and pgf spy

2 answers, 1.496 views tikz-pgf pgfplots babel option-clash spy
The following example taken from the pgfplots manual (p. 121) works fine only if the line loading babel is commented \documentclass{article} \usepackage[frenchb]{babel} % this is the troubelsome ...

### 5 No content in zoom Tikz spy

1 answers, 1.053 views tikz-pgf spy
I'm trying to use the spy glass in Tikz, but for some reason my zoom area is always empty and (some) graphs tend to disappear when I use spy. I've updated all my packages etc. through the updater by ...

### 2 Pgfplots label get repeated by tikz spy library

1 answers, 567 views tikz-pgf pgfplots spy
My question is very similar to this question. I label a certain curve in my plot and magnify a part of that. The \spy command repeats the \label which causes multiply defined label warnings which are ...

### 24 Magnifying part of a picture similar to TikZ spy library

3 answers, 7.479 views tikz-pgf spy
Suppose I have a .png or .jpg file. Let's say this one: I would like to zoom in on the tip of Tux's beak. TikZ for example provides a very nice library that allows for zooming with a spyglass like ...