我如何使用 tikz 包绘制这张图片?

我如何使用 tikz 包绘制这张图片?

这个想法是对交叉点(透明和虚线圆盘)进行放大

在此处输入图片描述

一切顺利!

答案1

你会发现自己做这些事情会有趣得多。

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}
\draw[very thick] (0,0) circle(2);
\draw[thick] (-3,0) -- (5,0) (0,-3) -- (0,5);
\draw[very thick] (4,-1) -- (2.5,5) coordinate[pos=0.75] (aux);
\begin{scope}[on background layer]
\node[circle,draw,fill=gray!50,on background layer,minimum size=1cm] (c1) at (45:2){};
\node[circle,draw,fill=gray!50,on background layer,minimum size=1cm] (c2) at (aux){};
\end{scope}
\draw[very thick] (-0.3,3) node[circle,draw,fill=white,inner sep=3pt]{}
to[bend left] coordinate[midway] (x1) ++ (50:1.5)node[circle,draw,fill=white,inner sep=3pt]{};
\draw[very thick] (5,3) node[circle,draw,fill=white,inner sep=3pt]{}
to coordinate[midway] (x2) ++ (120:1.5)node[circle,draw,fill=white,inner sep=3pt]{};
\foreach \X in {1,2}
{\path (c\X) -- (x\X) coordinate[pos=0.1] (y\X) coordinate[pos=0.7] (z\X); 
\draw[->] (y\X) -- (z\X);}
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容