![使用 TikZ 或其他 LaTeX 软件包绘制字符串散点图](https://linux22.com/image/294364/%E4%BD%BF%E7%94%A8%20TikZ%20%E6%88%96%E5%85%B6%E4%BB%96%20LaTeX%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E7%BB%98%E5%88%B6%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%95%A3%E7%82%B9%E5%9B%BE.png)
我正在写一篇论文,需要在引言中放一张图。该图如下(或类似图),我想知道如何在 LaTeX 代码中重现它。
答案1
答案2
TikZ 解决方案:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw (0,0) ellipse (.5 and .25);
\draw (-1,-2) ellipse (.5 and .25);
\draw (1,-2) ellipse (.5 and .25);
\draw (-.5,0) to[out=-90,in=90] (-1.5,-2);
\draw (.5,0) to[out=-90,in=90] (1.5,-2);
\draw (-.5,-2) to[out=90,in=90] (.5,-2);
\end{tikzpicture}
\end{document}
带有一些伪 3D
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[x={(1cm,0cm)},y={(-.2cm,-.2cm)},z={(0cm,1cm)}]
\draw (0,0,0) circle (.5);
\draw (-1,0,-2) circle (.5);
\draw (1,0,-2) circle (.5);
\draw (-.5,0,0) to[out=-90,in=90] (-1.5,0,-2);
\draw (.5,0,0) to[out=-90,in=90] (1.5,0,-2);
\draw (-.5,0,-2) to[out=90,in=90] (.5,0,-2);
\end{tikzpicture}
\end{document}