答案1
只是试图在某处找到完全相同的图片可能不是最有效的策略。查看 pgfmanual 的教程可能会更有效,它非常详细地描述了如何绘制此类内容。
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\draw[ultra thin] (-2,0) -- (4,0) (0,-2) -- (0,4);
\draw (-0.5,3) -- (3,-0.5) coordinate[pos=0.5] (aux)
node[pos=0.7,sloped,above]{$x+W$}
node[pos=0.8,sloped,below]{Hyper plane};
\draw[-stealth] (0,0) -- (aux) node[midway,below right]{$x$};
\node[circle,draw,fill=gray,minimum size=2.4cm] at (-1,1.2) {$K$};
\end{tikzpicture}
\begin{tikzpicture}[font=\sffamily]
\draw[dashed] (-2.5,3) -- (2.5,-0.5);
\node[circle,draw,fill=gray,minimum size=2.4cm] at (1,2.4) {$K_2$};
\draw[fill=gray,rounded corners] (-2,2) -- (-0.2,1) -- (0.2,-1) -- (-1.5,0) -- (-2.2,1.5) --cycle;
\path (-2,2) -- (0.2,-1) node[midway] {$K_1$};
\draw[ultra thin] (-3,0) -- (3,0) (0,-2) -- (0,4);
\end{tikzpicture}
\end{document}