Questions tagged [spy]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Spy curve outside plotting range in a pgfplots' groupplot

I have a single point in a curve that is really outside the range I would like to plot, so I thought I would use the spy library to simply show the point. With the original range it looks fine: But ...
aaragon's user avatar
  • 3,051
3 votes
1 answer
109 views

Adding an inset figure in tikz

Is it possible to draw like an inset style figure but just using tikz ? Obviously, I am trying to use the zoom effect by focusing on a particular region of a scheme but I want to achieve is : Inside ...
Waxler's user avatar
  • 712
0 votes
0 answers
34 views

how to magnify part of a polar plot using spy library

I need to magnify a region around the origin of a polar plot by using the spy library. I already (successfully) used the library before in Cartersian coordinates. However, in this case, I am not sure ...
Euclides's user avatar
9 votes
2 answers
259 views

Drawing only in Spy magnifying glass

I would like to be able to draw something into the spy magnifying glass without drawing it in the main picture (e.g. to add specific annotations into only the zoomed version of the picture). Why this ...
mranvick's user avatar
  • 295
2 votes
1 answer
84 views

Using spy with Beamer animations?

TikZ spy and Beamer \pause, \onslide, ... do not seem to work well together. This has been observed in several previous, albeit older questions (in particular, 1 and 2 ), but the workarounds shown ...
Holger Karl's user avatar
1 vote
1 answer
60 views

Spy on scaled tikzpicture and different layers

I am having trouble using \spy on a scaled tikzpicture. Example code: \documentclass[border=0.5mm]{standalone} \usepackage{tikz} %\usepackage{tikzscale} \usepackage{pgfplots} \pgfplotsset{compat=1.16} ...
algae's user avatar
  • 285
0 votes
1 answer
56 views

Magnification just along the y axis by spy package

I hope you are doing well. Here is my code which magnifies a part of the plot along both axis. I am going to magnify a part of my plot just along the y-axis by spy package. Can you help me, please? \...
Mojtaba Mansouri's user avatar
3 votes
1 answer
122 views

Problem with beamer and tikz spy when using opacity

I have this problem. When I am using the library overlay-beamer-styles with spy and opacity, spy doesn't work well. The problem starts when I use visible on=<> with two different \spy and ...
Gregory's user avatar
  • 41
3 votes
2 answers
352 views

Projected square magnified image using tikz

Is there a way to achieve magnification like the one shown below using Spy library in TikZ? If so, how to achieve it? If not so, what better alternatives are there? The thick yellow outlines below are ...
SolidMark's user avatar
  • 1,389
0 votes
2 answers
157 views

Custom pgfplots spy: Dimension too large

I'm working on presenting some Nyquist-diagrams with the help of the bodeplot package, but the same situation applies, when using default pgfplots. The problem is that I need to point out details of ...
marc's user avatar
  • 701
9 votes
1 answer
318 views

If condition with non integer numbers in Tikz

I have the following code to build the derivates of a given function: \documentclass[tikz, border=.5cm]{standalone} \usepackage{tkz-fct} \usepackage{xfp} \usetikzlibrary{spy} \definecolor{vinho}{rgb}{...
Angelo Aliano Filho's user avatar
1 vote
0 answers
125 views

size and resolution of tikz image when using spy library

I am using the spy library of the tikz package and I would like to avoid pixilation of the zoomed area while at the same time keep the size of the generated pdf file as small as possible. Let's say ...
jopeto's user avatar
  • 165
3 votes
1 answer
71 views

Spy window is pixelated

I am trying to use spy to zoom in a plot that has a lot going on at different scales. However when I zoom in, the plot doesn't look as expected. It looks sort of pixelated. Any idea why? And how to ...
Charlie's user avatar
  • 43
0 votes
1 answer
162 views

Tikz spy connection path double line pgf layer problem

I am using the spy library of the tikz package in order to magnify a part of an image. However, since my image is multicolored, I would like to use a double line to improve the contrast marking the ...
jopeto's user avatar
  • 165
1 vote
0 answers
104 views

Magnifying part of an image using Tikz spy in a manner that can be rescaled later

My question is similar to Magnifying part of a picture similar to TikZ spy library. Using the spy library I want to produce the same figure as shown in the answer https://tex.stackexchange.com/a/59710/...
Marten's user avatar
  • 311
1 vote
0 answers
51 views

problems with arrows in magnified window using spy [closed]

I try to add arrows in the magnified \spy picture using this answer but could not scale this arrow using the arrows.meta library. Here the MWE and the picture I got so far: \documentclass[border=5pt,...
Excelsior's user avatar
  • 2,322
6 votes
1 answer
466 views

tikz: draw on top of spy

I want to draw on a tikz-spy and the new line should be covering the ones copied by the spy. E.g.: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{spy,shapes} \pgfdeclarelayer{bg} % ...
Florian's user avatar
  • 2,919
2 votes
1 answer
167 views

Spy magnifier shape

I'm trying to zoom in a tikzpicture with the Spy library but I would like the shape of the magnifier to be given by a path (for example, a hexagon shape). Is it possible? And is it possible to show ...
Pedro's user avatar
  • 474
2 votes
1 answer
197 views

How copy an area from a tikz figure to another figure

I want to copy part of a relatively complex tikz figure (with an image in the background and text above) to another tikz figure on another page. I'm thinking of using spy, but I haven't found an ...
rpapa's user avatar
  • 12.4k
3 votes
2 answers
287 views

Spy in a circle

I am trying to zoom part of the plot residing in the axis environment. An idea I tried to use can be found here, however, when I try to compile to code, Latex reports an error. I would appreciate it ...
slm992's user avatar
  • 43
-1 votes
1 answer
142 views

How to convert a picture into a neat tex format?

I am trying to make a picture like this in LaTeX. Any ideas how I would do this?
fdzsfhaS's user avatar
  • 259
1 vote
1 answer
128 views

TikZ: Best method of displaying magnified view that has more detail than unmagnified view

I am looking to create a diagram that has a single spot (which is a small part of the larger picture) that is magnified such that in the magnified view, the spot is replaced with something that has a ...
user3264392's user avatar
1 vote
0 answers
239 views

Subfigures of magnified parts from images without including the whole figures in LaTeX and TikZ

I'm writing a research paper and I would like to compare a portion of the reference image (while including the latter) with the zoom of many portions of images of other methods, but, without including ...
mja's user avatar
  • 11
0 votes
1 answer
59 views

Change font of a spied-on plot

I have a simple plot and I have to change the font, the color in this occasion, of the text (title, axis labels, ticks labels...). I'd put something like font=\color{red} as an option of the ...
Millo's user avatar
  • 35
2 votes
1 answer
693 views

Spy TikZ library: an expansion of differents zoom

Starting from my old question where I have modificated some parameters, I have not understood the reason because the center of the spy is not in $(4,3.5)$ but it is closer at the point $(3.2,3)$ (this ...
Sebastiano's user avatar
  • 54.3k
1 vote
0 answers
149 views

`tikz` `spy` library does not render the background layer

This is a variation of the same MWE of this other question: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{spy} \usetikzlibrary{backgrounds} \begin{document} \...
Nicola Gigante's user avatar
3 votes
1 answer
571 views

Manipulating the contents of the `spy in` node with `tikz` `spy` library

Consider this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{spy} \begin{document} \begin{tikzpicture} [spy using outlines={circle, magnification=7, size=...
Nicola Gigante's user avatar
1 vote
2 answers
2k 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 ...
Philip's user avatar
  • 421
3 votes
1 answer
746 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 ...
Octopus's user avatar
  • 585
1 vote
1 answer
339 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 ...
Julia's user avatar
  • 1,658
6 votes
2 answers
446 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 ...
Claudio's user avatar
  • 2,007
6 votes
4 answers
1k 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 ...
Claudio's user avatar
  • 2,007
11 votes
1 answer
1k 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 ...
J W's user avatar
  • 111
4 votes
2 answers
367 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 ...
Yuchi's user avatar
  • 63
2 votes
1 answer
73 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{...
dEmigOd's user avatar
  • 397
10 votes
2 answers
1k 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{...
Milo's user avatar
  • 9,460
4 votes
1 answer
853 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 ...
Hemant's user avatar
  • 43
6 votes
2 answers
726 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 ...
bp2017's user avatar
  • 3,776
6 votes
1 answer
983 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} \...
nonosto's user avatar
  • 61
2 votes
0 answers
612 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 ...
vapoto's user avatar
  • 21
1 vote
0 answers
199 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 ...
Maja Gwóźdź's user avatar
1 vote
1 answer
137 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{...
Stephen Johnson's user avatar
2 votes
1 answer
419 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 ...
Axel Krypton's user avatar
  • 1,093
1 vote
1 answer
481 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 ...
mallwright's user avatar
3 votes
1 answer
391 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/...
Artemis's user avatar
  • 526
3 votes
2 answers
381 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:...
Alexander Schrodt's user avatar
2 votes
1 answer
663 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 ...
Rhinocerotidae's user avatar
4 votes
1 answer
842 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 ...
Eric Williams's user avatar
13 votes
1 answer
1k 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 ...
Indigo's user avatar
  • 233
9 votes
1 answer
823 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 ...
Ash's user avatar
  • 318