I hope someone can help me. How can I make both ellipses have the same size?
I attach the code and an image of how I want it to look
\begin{tikzpicture}
\node (1) at (0,0) {1};\filldraw(1.east) circle (1pt);
\node (2) [below of = 1] {2};\filldraw(2.east) circle (1pt);
\node (3) [below of = 2 ] {3};\filldraw(3.east) circle (1pt);
\node (4) [below of= 3] {4};\filldraw(4.east) circle (1pt);
\node[fit = (1) (2) (3) (4) , ellipse, draw=blue, minimum width =2cm,thick, label=below:\(A\)]{};
\node (1_1) at (3,0) {1};\filldraw(1_1.west) circle (1pt);
\node (2_2) [below of=1_1] {2};\filldraw(2_2.west) circle (1pt);
\node (3_3) [below of=2_2] {3};\filldraw(3_3.west) circle (1pt);
\node[fit = (1_1) (2_2) (3_3) , ellipse, draw=blue, minimum width =2cm,thick,label=below:\(B\)]{};
\draw[->, shorten >=.1cm, stealth] (1.east) to (1_1.west);
\draw[->, shorten >=.1cm, stealth] (2.east) to (3_3.west);
\draw[->, shorten >=.1cm, stealth] (3.east) to (2_2.west);
\draw[->, shorten >=.1cm, stealth] (4.east) to (1_1.west);
\end{tikzpicture}
fit
? You could also usefit
but declare a common minimum width and a minimum height to those ellipses.