有谁能帮我吗?我想画一个箭头和一个带有圆形节点的环,如图所示?
我正在等待您的专业知识。
答案1
我用了蒂克兹;对于你关于箭头提示的具体问题,我使用了箭头库(见第 23 节箭头库pgf 手册)。以下代码可以作为起点:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning,calc}
\begin{document}
\begin{tikzpicture}[%
myloop/.style={to path={.. controls +(50:1) and +(-50:1) .. (\tikztotarget) \tikztonodes}},
mytext/.style={draw,fill=white,font=\footnotesize,align=center},
myellipse/.style={draw,ellipse, x radius=1cm, text width=4cm, text height=1.3cm}
]
\node[myellipse] at (0,0) (top) {};
\node[myellipse] at (0,-4) (bottom) {};
\node[draw,circle, inner sep=10pt] at ($(top.center)+(-1,0)$) (dutch) {};
\node[draw,circle, inner sep=10pt] at ($(top.center)+(1,0)$) (english) {};
\foreach \x/\y in {-1.2/-3.5,-0.6/-3.7,-0.9/-3.8,-1.2/-4.1,-0.9/-4.1,-0.6/-4.1,-1/-4.4,-0.7/-4.4}
\draw (\x,\y) circle [radius=2pt];
\foreach \x/\y in {1.2/-3.5,0.6/-3.7,0.9/-3.8,1.2/-4.1,0.9/-4.1,0.6/-4.1,1/-4.4,0.7/-4.4}
\fill (\x,\y) circle [fill=black,radius=2pt];
\draw[*-,ultra thick] (bottom.5) to [myloop] (bottom.355);
\draw[-latex,ultra thick,shorten >=3pt] (-1,-3.5) -- (dutch);
\draw[-latex,ultra thick,shorten >=3pt] (1,-3.5) -- (english);
\draw[*-,ultra thick,shorten >=3pt] (-0.8,-3.5) -- (english);
\draw[*-,ultra thick,shorten >=3pt] (0.8,-3.5) -- (dutch);
\draw[->,ultra thick,shorten >=3pt] (-0.8,-5.5) -- (-0.8,-4.5);
\draw[-*,ultra thick,shorten >=3pt] (0.8,-5.5) -- (0.8,-4.5);
\node[mytext] at (-1,0.7) {DUTCH};
\node[mytext] at (1,0.7) {ENGLISH};
\node[mytext] at (-2.2,-4) {DUTCH\\ WORDS};
\node[mytext] at (2,-4) {ENGLISH\\ WORDS};
\end{tikzpicture}
\end{document}