答案1
- 首先你需要解决数学问题:写出心形公式...
- 了解了这一点,绘制图表就很简单了:
\documentclass[tikz,border=3.141592]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[> = Straight Barb]
% axis
\draw[->] (-0.5,0) node[left] {$x'$}
-- (2.5,0) node[right] {$x$};
\draw[->] (0,-1.2) node[left] {$y'$}
-- (0,1.5) node[right] {$y$};
\coordinate[pin=300:0] (aux);
% cardioid
\draw[semithick] plot[domain=0:540,samples=200] (\x:{1+cos(\x)});
\end{tikzpicture}
\end{document}