我尝试使用 TiKZ 绘制以下图片,谁能帮我修复它

我尝试使用 TiKZ 绘制以下图片,谁能帮我修复它

我尝试使用 TiKZ 绘制以下图片,谁能帮我修复它

\documentclass[margin = 2cm,multi = {tikzpicture}]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}

\begin{tikzpicture}
\draw[Triangle-Triangle,very thick] (-4.5,0) -- (4.5,0);
\draw[Triangle-Triangle,very thick] (0,-4.5) -- (0,4.5);
\draw[step = .5] (-4.5,-4.5) grid (4.5,4.5);
\draw[smooth,thick] (-3.5,-0.5) ..controls(-2.2,1.7)and(.5,3.3).. (.75,3) ..controls(2,2) .. (0.4,0) ..controls(-.5,-1.4) .. (0,-2) ..controls(.75,-2.5) and (2.7,-2.5) .. (3,1);
\end{tikzpicture}

\end{document}

在此处输入图片描述

答案1

以下是否更好一些?

在此处输入图片描述

\documentclass[margin = 2cm,multi = {tikzpicture}]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}

\begin{tikzpicture}
\draw[Triangle-Triangle,very thick] (-4.5,0) -- (4.5,0);
\draw[Triangle-Triangle,very thick] (0,-4.5) -- (0,4.5);
\draw[step = .5] (-4.5,-4.5) grid (4.5,4.5);

\draw[smooth,thick] (-3.5,-0.5) ..controls +(0.5,1) and +(-2,0.0).. (.75,3) 
                                ..controls +(0.25,0) and +(0,1).. (1.75,2) 
                                ..controls +(0,-1.5) and +(0,1).. (-.5,-1.25) 
                                ..controls +(0,-2) and +(-0.25,-3.5).. (3,1);
\end{tikzpicture}

\end{document}

相关内容