Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 with TikZ spy, expressed in relative scoped coordinates

My problem is, that spy seems to place the point in the image correctly but then chooses the wrong part to magnify, for example in the MWE

\setbeamertemplate{navigation symbols}{}
    \begin{frame}{Example}{Spy on Images in Beamer}
        \begin{tikzpicture}[spy using outlines={circle,size=.1\textwidth, magnification=3, connect spies}]
            \node[anchor=south west,inner sep=0pt] (image) at (0,0) {%
            % \includegraphics[height=.5\textwdth]{exampleA}
                \draw[draw=blue,fill=green!50] (0,0) rectangle (.5\textwidth,.5\textwidth);
                \shade[top color=black, bottom color=white] (.25\textwidth,.25\textwidth) rectangle (.5\textwidth,.5\textwidth);                    
            \begin{scope}[x={(image.south east)},y={(image.north west)}]
                % Draw besides image
                \shade[top color=red, bottom color=blue] (1.025,.66) rectangle (1.075,1);
                \node (spy1) at (128/256,192/256) {};
                \coordinate (spyto1) at (-.5,.75); 
                \spy [black,thick] on (spy1) in node at (spyto1);
                \node (spy2) at (256/256,224/256) {};
                \coordinate (spyto2) at (-.5,.25); 
                \spy [black,thick] on (spy2) in node at (spyto2);
            % Adress a point in “pixels”

The magnification should be directly at the border of the green part to the shade. nevertheless, the magnification shows only green and playing around with the second one, i think it's off by both directions to the lower left.

Wrong spy in beamer with scopes

I have seen no way to obtain information about the magnification process, so - any clues, which computation is still affected by some wrong scoped coordinates would be very helpful.

Edit: As Andrew noted, this is fixed (also for me now) with TikZ/PGF 3.0; though if anybody could present details on what is going wrong here - feel free to share.

share|improve this question

closed as off-topic by Paul Gessler, Masroor, Svend Tveskæg, Guido, Fran Jan 13 at 5:48

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

What version of TikZ are you using? It works for me with TikZ3.0. –  Loop Space May 9 '14 at 11:32
I think it's the 2.10; that one usually shipped with MacTeX 2013. –  Ronny May 9 '14 at 11:39
Any chance of upgrading? It's really worth it. –  Loop Space May 9 '14 at 11:54
I tried just putting it into my local directory (~Library/texmf on a Mac) which didn't work yet; nevertheless I am not the only one working with these graphics; i'll try to upgrade but a solution for the 2013-TeXLive would be nice –  Ronny May 9 '14 at 12:18
This question appears to be off-topic because it was solved by updating the pgf package. –  Paul Gessler Jan 13 at 4:15

Browse other questions tagged or ask your own question.