I have the following code in LaTeX that produces a circle in a square with arrow lines, but I want to replace the circle with an irregular shape like the molecule in the image. How can I go about it?
\begin{figure}[H]
\centering
\begin{tikzpicture}[thick]
%x-axes
\draw [red](4,2) --(7,2);
%\draw (4,3) --(7,3);
%\draw (4,4) --(7,4);
\draw [red,very thick](4,5) --(7,5);
%y-axes
\draw [red,very thick](7,2) --(7,5);
%\draw (6,2) --(6,5);
%\draw (5,2) --(5,5);
\draw [red,very thick](4,2) --(4,5);
%centre
\fill[blue,very thick] (5.5,3.5) circle(.1);
%arrows on the right
\draw [-latex][dashed] (5.5,3.5) --(8,5);
\draw [-latex][dashed] (5.5,3.5) --(8,4);
\draw [-latex][dashed] (5.5,3.5) --(8,3);
\draw [-latex][dashed] (5.5,3.5) --(8,2);
%arrows on the left
\draw [-latex][dashed] (5.5,3.5) --(3,2);
\draw [-latex][dashed] (5.5,3.5) --(3,3);
\draw [-latex][dashed] (5.5,3.5) --(3,4);
\draw [-latex][dashed] (5.5,3.5) --(3,5);
%arrows at the bottom
\draw [-latex][dashed] (5.5,3.5) --(4,1);
\draw [-latex][dashed] (5.5,3.5) --(5,1);
\draw [-latex][dashed] (5.5,3.5) --(6,1);
\draw [-latex][dashed] (5.5,3.5) --(7,1);
%arrows at the top
\draw [-latex][dashed] (5.5,3.5) --(4,6);
\draw [-latex][dashed] (5.5,3.5) --(5,6);
\draw [-latex][dashed] (5.5,3.5) --(6,6);
\draw [-latex][dashed] (5.5,3.5) --(7,6);
%draw a circle
\node(circle) [circle, inner sep=0.7cm, draw=red!120] at (5.5,3.5) {};
\end{tikzpicture}
\end{figure}
Best Answer
This is what you can do with the hobby package: