Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spy]

{spy} is about a {tikz} library used to magnifying parts of pictures.

1
vote
2answers
71 views

pgfplot zoom into coordiate set on plot and insert text

I have managed to produce a nice looking graph, but want to add a "loop" that zooms into a specific threshold created by me (the 95th percentile). In the zoomed picture I'd like to be able to add text ...
3
votes
1answer
134 views

Tikz: Spy on tikzpicture, but only display the magnified part

Assuming in a presentation first a large and relatively complicated tikzpicture is shown. After this overview, the focus should be set to two small parts of the graph and next to it, there should be a ...
1
vote
1answer
49 views

Zooming without magnifying line widths and points

I tried the approach described in https://tex.stackexchange.com/a/129307/21557 to magnify a part of an image without magnifying line widths. I also don't want the point to be magnified. In my example ...
6
votes
2answers
207 views

Connect spy with tangent lines

I am using TikZ spy library to magnify part of my plot, and I would like to connect the spy point and the magnifying glass with two tangents to both circles (see second example). I found and ...
2
votes
2answers
125 views

TikZ spy and PGFPlots fill between

I used PGFPlots library fillbetween to create a plot, and now I want to magnify part of it using TikZ spy library. However, when I do it the filled area between plots disappears, both from the ...
11
votes
1answer
288 views

Tikz pattern size in spy

I have a problem using pattern to fill shapes: I've a shape thats filled with a self-defined pattern (simple dots with the same distance) and i want to zoom at one corner of the shape. I do this with ...
4
votes
2answers
118 views

Add arrow and words on a magnified pic using TikZ spy

I want to add some arrows and words on a magnifying pic. Add A, B, and C on the magnifying pic. Could anybody help me fix this problem? Thanks \begin{figure} \begin{tikzpicture}[scale=1,spy ...
2
votes
1answer
44 views

Why coordinates are shifted but not scaled

I'm trying to draw on the spy'ed area \documentclass[multi={tikzpicture,wrapper}]{standalone} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{calc,spy} \begin{document} \begin{...
10
votes
2answers
668 views

Using TikZ spy in 3D

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
votes
1answer
177 views

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

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
votes
2answers
610 views

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
votes
1answer
429 views

How to write only in the magnified area with 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
votes
0answers
257 views

Spy functionality with different scaling for each axis

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
vote
0answers
120 views

Spy on a tikz plot generated by tikzDevice

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
vote
1answer
104 views

Drawing arrows between content copied with 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
votes
1answer
210 views

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

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
vote
1answer
143 views

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

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 ...
2
votes
1answer
195 views

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

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/...
3
votes
2answers
139 views

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

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
votes
1answer
334 views

Spy glasses in a group plot

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 ...
4
votes
1answer
367 views

How to exclude items from a TikZ 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
votes
1answer
917 views

Plot with magnifying glass, with a different plot in it

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 ...
9
votes
1answer
506 views

Tikz spy - empty zoom with pdflatex

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 ...
4
votes
2answers
1k views

Undefined control sequence error in using spy TikZ library

My minimal working example is as follows. \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{spy} %\usepackage[font=normal,...
4
votes
1answer
411 views

Can't spy with overlay, remember picture options

\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
votes
1answer
852 views

use axis of original plot in \spy plot

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
votes
1answer
524 views

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

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
votes
2answers
677 views

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

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 ...
3
votes
1answer
332 views

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

I noticed that the foreground color changes when adding a spy scope to my tikzpicture. Compare: \documentclass[]{beamer} \usepackage{tikz} ...
9
votes
1answer
2k views

Magnify text using spy library

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
votes
1answer
989 views

Tikz Spy, different image magnified?

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
votes
0answers
537 views

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

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
votes
1answer
3k views

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

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
votes
1answer
1k views

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

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 - ...
6
votes
1answer
2k views

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

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
votes
0answers
132 views

Real Zoom in a plot [duplicate]

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 ...
9
votes
1answer
3k views

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

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
votes
0answers
241 views

Magnified plot / Vertical Markers [duplicate]

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 ...
8
votes
1answer
6k views

TikZ: using the spy library to zoom in

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
votes
1answer
2k views

Rectangular spy in pgfplots without scaling

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
votes
1answer
1k views

Where can I find the TikZ spy package

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 ...
14
votes
1answer
3k views

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

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, ...
11
votes
1answer
2k views

Plot magnification using sub-plot within a plot!

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
votes
1answer
1k views

Scalebar Overlay and TikZ 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
votes
2answers
2k views

Unexpected clash between babel and pgf 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
votes
1answer
1k views

No content in zoom Tikz 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 ...
5
votes
1answer
2k views

How to add axes in a magnified part of a graph using 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{...
2
votes
1answer
578 views

Pgfplots label get repeated by tikz spy library

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 ...
25
votes
3answers
9k views

Magnifying part of a picture similar to TikZ spy library

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 ...