I apologize if this is a repeat of another question, but I would like to connect the nodes A and B from the left hand side of this picture to the top and bottom of the circle in the right hand side:
So something like this:
Things I have tried:
Using overlay and remember picture
When using these settings, overlay moves the right hand picture to an undesired location and using remember picture by itself to connect the nodes does not work.
Placing both images inside one tikzpicture and using scopes
Unfortunately when placing the right hand side inside the left hand side's tikzpicture environment, the diagram orients itself to the x,y axis (which is actually the x,t plane in the diagram) and hence does not get me the desired output.
I am unsure of how to draw the connecting lines. Here is the code used in the making of the diagram:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{tikz-3dplot}
\usepackage[left=0.00cm, right=0.00cm]{geometry}
\begin{document}
\tdplotsetmaincoords{72}{170}
\begin{tikzpicture}[tdplot_main_coords,scale=0.5,xscale=-1]
\pgfmathsetmacro{\Length}{3}
\pgfmathsetmacro{\Stretch}{2}
% \draw[-latex] (0,0,0) -- (\Length,0,0) node[below]{$x$};
% \draw[-latex] (0,0,0) -- (0,\Length,0) node[left]{$y$};
% \draw[-latex] (0,0,0) -- (0,0,\Length) node[left]{$z$};
\draw[black,very thick] plot[smooth,variable=\x,domain=0:720,samples=360] ({\Length*cos(\x)},
{\x*(\Stretch*\Length/360)},{\Length*sin(\x)});
\draw (-1.2*\Length,0,-1.2*\Length) coordinate (lbf) --
(1.2*\Length,0,-1.2*\Length) coordinate (lbb) --
(1.2*\Length,0,1.2*\Length) coordinate (ltb) --
(-1.2*\Length,0,1.2*\Length) coordinate (ltf) -- cycle;
\foreach \X in {bf,bb,tf}
{\draw (l\X) -- ++ (0,2*\Stretch*\Length,0) coordinate (m\X);}
\draw[thick] (mbf) -- (mbb) (mtf) -- (mbf);
\foreach \X in {bf,bb,tf}
{\draw[thick] (m\X) -- ++ (0,2*\Stretch*\Length,0) coordinate (r\X);}
% middle
\begin{scope}[canvas is zx plane at y=0]
\node[transform shape,rotate=-90,scale=2,xscale=-1] at (1,0) {Circlular};
\pgflowlevelsynccm
\draw[fill] (0,0) circle (0.2);
\end{scope}
\foreach \X in {1,...,5}
{\ifnum\X=3
\draw[thin] ($(mbf)!{\X/6}!(mbb)$) -- ++ (0,3*\Stretch*\Length,0);
\draw[thin] ($(mbf)!{\X/6}!(mtf)$) -- ++ (0,3*\Stretch*\Length,0);
\else
\fi}
\foreach \X [evaluate=\X as \Y using {int(mod(\X,5))}] in {1,...,18}
{
\ifnum\Y=0
\draw[thin] ($(mbf)+(0,\X,0)$) -- ($(mbb)+(0,\X,0)$);
\draw[thin] ($(mbf)+(0,\X,0)$) -- ($(mtf)+(0,\X,0)$);
\else
\fi
}
\draw[black,very thick,-latex] plot[smooth,variable=\x,domain=720:1460,samples=360] ({\Length*cos(\x)},
{\x*(\Stretch*\Length/360)},{\Length*sin(\x)});
\draw[black,densely dashed] plot[smooth,variable=\x,domain=720:1800,samples=360]
({\Length*cos(\x)},{\x*(\Stretch*\Length/360)},-1.2*\Length);
\draw[black,densely dashed] plot[smooth,variable=\x,domain=720:1800,samples=360]
(-1.2*\Length,{\x*(\Stretch*\Length/360)},{\Length*sin(\x)});
% right
\foreach \X in {bf,bb,tf}
{\draw[very thick] (r\X) -- ++ (0,\Stretch*\Length,0);}
\draw[very thick,fill=white,fill opacity=0.5] (rbf) -- (rbb) (rtf) -- (rbf);
\draw[thick,densely dashed,-latex] plot[smooth,variable=\x,domain=0:-360]
({\Length*cos(\x)},0,{-\Length*sin(\x)});
\path (mbb) node[right=3pt,font=\Large\sffamily] {Cosine};
\path (rtf) node[above left=3pt,font=\Large\sffamily] {Sine};
\draw[-latex] (-3.6,0,-3.6) -- (-3.6,37,-3.6) node[left,font=\Large] {$t$};
\draw[-latex] (3.6,0,-3.6)-- (5,0,-3.6) node [right,font=\Large] {$x$};
\draw[-latex] (-3.6,0,3.6)-- (-3.6,0,5) node [above,font=\Large] {$y$};
% NODES I WOULD LIKE TO CONNECT THE SECOND PICTURE TO:
\node at (0,0,3) (A) {};
\node at (0,0,-3) (B) {};
\end{tikzpicture}
\tdplotsetmaincoords{0}{0}
\begin{tikzpicture}[remember picture]
\draw[-latex] (-5,0) -- (5,0) node [right] {$x$};
\draw[-latex] (0,-5) -- (0,5) node [above] {$y$};
\draw[densely dashed] (0,0) circle (4);
\draw[ultra thick,-latex] (0,0) -- (60:4) node[above right] {$E$};
\draw[-latex,thick] (0,0) -- (2,0) node[below] {$x$};
\draw[-latex,thick] (0,0) -- (0,3.46410615) node[left] {$y$};
\draw[densely dashed] (2,0) -- (60:4) -- (0,3.46410615);
\fill (0,0) circle (0.1);
\draw[-latex] (60:4) -- (70:4);
\end{tikzpicture}
\end{document}