这是我目前得到的:
\begin{tikzpicture}
\draw[color=blue] (1,0) circle (1.5);
\draw (0,0) node[circle, inner sep=2pt, fill=black, label={above:{$x$}}] (x) {};
\draw (2,0) node[circle, inner sep=2pt, fill=black, label={above:{$y$}}] (y) {};
\draw [->] (0,0) -- (1.8,0);
\draw [->] (y) .. controls +(-1,-1) .. (0,-0.1);
\end{tikzpicture}
我不知道如何写等号并继续接下来的两张图片。
答案1
正如@Alenanno 所说,您只需使用 来增加字体大小即可 font=\Huge
。
您可以为节点和箭头创建样式以简化代码
代码
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning}
\begin{document}
\tikzset{
Circle/.style={circle, inner sep=2.5pt, fill=black, label={above:{$#1$}}},
Arrows/.style={arrows={-Triangle[length=2mm]}}}
\begin{tikzpicture}[thick,node distance=1cm]
\draw (0,0) node[Circle=x] (x) {};
\draw (2,0) node[Circle=y] (y) {};
\draw [->,Arrows] (x) -- (y);
\draw [->,Arrows] (y) .. controls +(-1,-1)..(x);
\node [right=of y, font=\Huge](z) {\lower1.3ex\hbox{=}};
\node [right=of z, Circle=x](t) {};
\draw [->,Arrows] (t) --+ (2,0)node(e)[label={above:{$y$}}]{};
\node [right=of e, font=\Huge](f) {\lower1.3ex\hbox{$\ast$}};
\node [right=of f,label={above:{$x$}}](g){};
\node [right=2 of g, Circle=y](h){};
\draw [->,Arrows] (h) .. controls +(-1,-1)..(g);
\begin{scope}[color=blue]
\draw (1,0) circle (1.5);
\draw (t)+(1,-1.5) arc (270:90:1.5cm)--cycle;
\draw (h)+(-1,-1.5) arc (-90:90:1.5cm)--cycle;
\end{scope}
\end{tikzpicture}
\end{document}
输出
答案2
与 @salimbou 的回答类似,使用不同的方式绘制箭头、圆弧和使用绝对坐标:
\documentclass[border=3mm,
tikz,
preview
]{standalone}
\begin{document}
\begin{tikzpicture}[
radius = 8mm,
arrow/.style = {shorten <=1.2mm, shorten >=1.2mm, ->}
]
% 1
\fill[black] (-0.4,0) circle (1mm) node[above] {$x$};
\fill[black] (+0.4,0) circle (1mm) node[above] {$y$};
\draw [arrow] (-0.4,0) -- (0.4,0);
\draw [arrow] (0.4,0) to [out=240,in=300,looseness=2.4] (-0.4,-0);
\draw[color=blue] (0,0) circle (0.8);
% 2
\begin{scope}[xshift=24mm]
\node at (-1.2,-0.07) {\huge$=$};
%
\fill[black] (-0.4,0) circle (1mm) node[above] {$x$};
\node[above] at (+0.4,0) {$y$};
\draw [arrow] (-0.4,0) -- (0.4,0);
\draw[color=blue] (0,0) -- + (0,0.8) arc[start angle=90,end angle=270] -- cycle;
\end{scope}
% 3
\begin{scope}[xshift=44mm]
\node at (-1.1,-0.07) {\huge$*$};
%
\fill[black] (0.4,0) circle (1mm) node[above] {$y$};
\node[above] at (-0.4,0) {$y$};
\draw [arrow] (0.4,0) to [out=240,in=300,looseness=2.4] (-0.4,-0);
\draw[color=blue] (0,0) -- + (0,0.8) arc[start angle=90,end angle=-90] -- cycle;
\end{scope}
\end{tikzpicture}
\end{document}