帮助我在 Latex 中编写给定图形的代码。
问问题
68 次
2 回答
1
我的版本有一些周期:
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \n in {0,...,6} \node [below] at (\n,0) {$\n$};
\foreach \m/\c in {6/0,5/25,4/50,3/75,2/100}%
\filldraw [black,fill=lime!\c!blue] (\m,0) arc(0:180:.5*\m) -- cycle;
\foreach \n in {1,...,5} \node [above] at (\n+.5,.1) {$\mathcal{U}_{\n}$};
\draw (0,0) -- (7,0);
\draw (1,.08) -- (1,-.08);
\end{tikzpicture}
\end{document}
于 2021-06-30T20:26:38.070 回答
1
给你一些开始:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[blue,draw=black] (0,0) arc [start angle=180, end angle=0, radius=6];
\fill[violet,draw=black] (0,0) arc [start angle=180, end angle=0, radius=5];
\fill[red,draw=black] (0,0) arc [start angle=180, end angle=0, radius=4];
\fill[orange,draw=black] (0,0) arc [start angle=180, end angle=0, radius=3];
\fill[yellow,draw=black] (0,0) arc [start angle=180, end angle=0, radius=2];
\foreach \x in {0,...,6}{
\node at (2*\x,-0.3) {\x};
}
\end{tikzpicture}
\end{document}
于 2021-06-30T20:13:25.163 回答