6

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and text-size should not change!

Here is my example:

\begin{figure}
\begin{tikzpicture}[
every node/.style={font=12pt},
remember picture,
scale=0.3,
transform shape
]
 \node[anchor=south west,inner sep=0] (Bild) at (0,0) {\includegraphics{images/Bild.eps}};
  \node (a) at (28,44) {Hello};
  \node (b) at (54,63) {};
 \draw [
 -latex,
  line width=2mm,
 ] (a) -- (b);
\end{tikzpicture}
\caption{This is an example} \label{Fig:Example}
\end{figure}

So when I scale with

0.3
the image
Bild.eps
is scaled, but also the font is scaled very small !

How can I scale the picture without changing the font and arrows ? While that the node coordinates should be adjusted to the scaled pictures (same position) !


Okay here is what I have so far:

\begin{tikzpicture}
    \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=1\textwidth]{Bild.eps}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
              \draw[
        -latex,
        line width=2mm
        ] (1,1) -- (3,2);
    \end{scope}
\end{tikzpicture}

But I am working in TikZEdt. It is very hard to adjust the arrow by setting the nodes with the cursor. I got a very small green rectable, which represents the size of the arrow o0

How can I make this rectable bigger so that it is easier to adjust / set the position of the nodes for the arrow ?


Okay here is what I mean:

enter image description here

  • Scale the Picture
  • Keep arrow and font size (= document size)
  • And keep Position of the node !!**

The picture is the output how I want it (I edited it with Photoshop)

So how can I create such code that give me the following: - Scaling the Picture ("Latex"-pic in example) with scale=XXX - Keep arrow and font size (= document size) - And keep Position of the node !!** ???

  • You could just scale the node or the \includegraphics, can’t you? It also would be better to use coordinates relatively to your image node, say \tikzset{x=(Bild.south west), y=(Bild.north west)} (which would work in your simple case). See also Drawing on an image with TikZ – Qrrbrbirlbel Nov 8 '13 at 20:19
  • You can zoom things in tikzedt. – user11232 Nov 8 '13 at 23:05

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.