简单情节中的错误台词

简单情节中的错误台词

下图中为什么有一条水平线?如果在笛卡尔平面上绘制,水平线将沿着正方向绘制X-轴。每个命令都是画一个半圆或者给半圆上色。

该图形由 18 个半圆组成,其中 9 个位于X轴,其中九个位于X轴。每个圆弧从半圆上方X轴应与下方的圆弧对齐X轴。不过,这些弧线并不完全对齐。

\documentclass{amsart}


\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}




\begin{document}


\begin{tikzpicture}[x=0.25cm,y=0.25cm]

\draw (-9,0) arc (180:0:9);
\path[fill=Purple] (-9,0) arc (180:0:9) -- (9,0) -- (-9,0);
\draw (-9,0) arc (180:0:8);
\path[fill=Orchid] (-9,0) arc (180:0:8) -- (7,0) -- (-9,0);
\draw (-9,0) arc (180:0:7);
\path[fill=blue] (-9,0) arc (180:0:7) -- (5,0) -- (-9,0);
\draw (-9,0) arc (180:0:6);
\path[fill=green] (-9,0) arc (180:0:6) -- (3,0) -- (-9,0);
\draw (-9,0) arc (180:0:5);
\path[fill=yellow] (-9,0) arc (180:0:5) -- (1,0) -- (-9,0);
\draw (-9,0) arc (180:0:4);
\path[fill=orange] (-9,0) arc (180:0:4) -- (-1,0) -- (-9,0);
\draw (-9,0) arc (180:0:3);
\path[fill=RedOrange] (-9,0) arc (180:0:3) -- (-3,0) -- (-9,0);
\draw (-9,0) arc (180:0:2);
\path[fill=Red] (-9,0) arc (180:0:2) -- (-5,0) -- (-9,0);
\draw (-9,0) arc (180:0:1);
\path[fill=Mahogany] (-9,0) arc (180:0:1) -- (-7,0) -- (-9,0);


\draw (-9,0) arc (180:360:9);
\path[fill=Mahogany] (-9,0) arc (180:360:9) -- (18,0) -- (-9,0);
\draw (-7,0) arc (180:360:8);
\path[fill=Red] (-7,0) arc (180:360:8) -- (18,0) -- (-7,0);
\draw (-5,0) arc (180:360:7);
\path[fill=RedOrange] (-5,0) arc (180:360:7) -- (18,0) -- (-5,0);
\draw (-3,0) arc (180:360:6);
\path[fill=orange] (-3,0) arc (180:360:6) -- (18,0) -- (-3,0);
\draw (-1,0) arc (180:360:5);
\path[fill=yellow] (-1,0) arc (180:360:5) -- (18,0) -- (-1,0);
\draw (1,0) arc (180:360:4);
\path[fill=green] (1,0) arc (180:360:4) -- (18,0) -- (1,0);
\draw (3,0) arc (180:360:3);
\path[fill=blue] (3,0) arc (180:360:3) -- (18,0) -- (3,0);
\draw (5,0) arc (180:360:2);
\path[fill=Orchid] (5,0) arc (180:360:2) -- (18,0) -- (5,0);
\draw (7,0) arc (180:360:1);
\path[fill=Purple] (7,0) arc (180:360:1) -- (18,0) -- (7,0);

\end{tikzpicture}

\end{document}

答案1

看看此代码是否以所需的形式重现了您的图形:

\documentclass{amsart}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}[x=0.25cm,y=0.25cm, very thin]
\draw[fill=Mahogany]    (-9,0) arc (180:0:9) arc (360:180:9);
\draw[fill=Red]         (-9,0) arc (180:0:9) arc (360:180:8) arc (0:180:1);
\draw[fill=RedOrange]   (-9,0) arc (180:0:9) arc (360:180:7) arc (0:180:2);
\draw[fill=orange]      (-9,0) arc (180:0:9) arc (360:180:6) arc (0:180:3);
\draw[fill=yellow]      (-9,0) arc (180:0:9) arc (360:180:5) arc (0:180:4);
\draw[fill=green]       (-9,0) arc (180:0:9) arc (360:180:4) arc (0:180:5);
\draw[fill=blue]        (-9,0) arc (180:0:9) arc (360:180:3) arc (0:180:6);
\draw[fill=Orchid]      (-9,0) arc (180:0:9) arc (360:180:2) arc (0:180:7);
\draw[fill=Purple]      (-9,0) arc (180:0:9) arc (360:180:1) arc (0:180:8);
    \end{tikzpicture}
\end{document}

在此处输入图片描述

笔记:每个形状都用一条闭合线绘制,并填充选定的颜色。在形状的边缘周围添加一条非常细的线,特别是在它们彼此非常接近甚至重叠的区域。

相关内容