1

I have some x,y coordinate data organised as two columns in my mydata.dat text file. I have no problem plotting this, but I want to plot the same data but just translated by some 2d Vector. My attempt so far has been something like below but the result is that nothing happens in terms of a shift! Any ideas?

\begin{tikzpicture}

\draw[] plot[] 
    file {mydata.dat};

\begin{scope}[every coordinate/.style={shift={(1,0)}}]
    \draw[thick] plot[] 
        file {mydata.dat};
\end{scope}

\end{tikzpicture}

Edit:

So I tried doing \draw [xshift = 1cm] and that seems to work, but still wondering why my first try didn't work.

closed as off-topic by Stefan Pinnow, Zarko, user36296, user13907, Stefan Kottwitz Oct 24 '16 at 19:36

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

  • coordinate is a special TikZ shape. Plot data is not. – percusse Dec 7 '15 at 18:34
  • OTOH [xshift=1] is (also) a valid scope option. – John Kormylo Dec 8 '15 at 16:42
  • 4
    I'm voting to close this question as off-topic because OP has found a solution himself which he presented as an edit to the question. – Stefan Pinnow Oct 24 '16 at 18:17

Browse other questions tagged or ask your own question.