ノードを参照して tikz \draw プロットを移動 / 配置しますか?

ノードを参照して tikz \draw プロットを移動 / 配置しますか?

この MWE では:

\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{fit,calc}
\makeatletter
\tikzset{
  % http://tex.stackexchange.com/questions/47704/how-to-establish-node-anchor
  fitting node/.style={
    inner sep=0pt,
    fill=none,
    draw=none,
    reset transform,
    fit={(\pgf@pathminx,\pgf@pathminy) (\pgf@pathmaxx,\pgf@pathmaxy)}
  },
  reset transform/.code={\pgftransformreset},
}
\makeatother

\begin{document}
\begin{tikzpicture}
% separately plot and box, else tikzedt don't show handles
\draw [black,thick] (1,3) rectangle (3.5,4)
  node[fitting node] (mynode) {};
%/* % also make tikzedt ignore (do not parse) this, plot kills all handles
\draw let \p1=(mynode) in
  [black, thick, domain=0:2.5,samples=50]
  plot (\x,{0.5*exp(-\x)*sin(1000*\x)});
%*/
\end{tikzpicture}
\end{document}

...私はこう思います:

テスト.png

私は を使用していますtikzedtが、そのような構文を使用すると、長方形ノードを移動するためのハンドルが提供されます。プロット部分をその中に配置して、ノードと一緒に移動できるようにしたいと思います。

残念ながら、または が操作 (例: )の結果として発生する場合、\draw plot クラッシュはまったく間違った結果を返します。\x1\y1letplot ({\x1+\x},{\y1+0.5*exp(-\x)*sin(1000*\x)});

では、\draw plotの内部を移動するにはどうすればよいですか(mynode)(つまり、 を明示的ではなく、 を参照して配置するにはどうすればよいですか(mynode))?

答え1

まあ、 を使うこともできたでしょうがshift、もっと早く思い出せればよかったです:

\draw let \p1=(mynode.west) in
  [black, thick, domain=0:2.5,samples=50,shift=(\p1)]
  plot ({\x},{0.5*exp(-\x)*sin(1000*\x)});

テスト.png

関連情報