我不太擅长用 tikz 绘图,有人能帮我画一个具体的图表吗?我需要一个圆或一个椭圆,上面有两条不相交的曲线。
类似图片包含
谢谢
答案1
不是很整洁,但你可以稍微完善一下:
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{shapes.geometric,calc,backgrounds}
\begin{document}
\begin{tikzpicture}[font=\sffamily, thick, outer sep=0pt]
\node (a) [draw, ellipse, minimum width=45pt, minimum height=20pt] {A\hskip 15pt\ };
\begin{scope}[on background layer]
\path [draw=red, thick, rounded corners=5pt] (a.175) -- ($(a.130) + (0,17.5pt)$) coordinate (b) -- (a.north);
\path [draw=blue, thick, rounded corners=5pt] (a.north) -- ($(a.east) + (5pt,20pt)$) coordinate (c) -- (a.east);
\node [red] at ($(b)!2/3!(a.130)$) {B};
\node [blue] at ($(c)!2/3!(a.25)$) {C};
\end{scope}
\end{tikzpicture}
\end{document}