我不知道如何画圆的半径。这是我能画的
\documentclass[tikz]{standalone}
\usetikzlibrary{patterns}
\newcommand{\greatcircle}[5][]{ \path[#1,pattern=north west lines,pattern color=#1!60,rotate=#5,dashed]
(#2) circle [x radius=#3, y radius=#4];
\begin{scope}[rotate=#5]
\clip (#3,0) rectangle ([xshift=-0.1,yshift=-0.1]-#3,-#4);
\draw[#1] (#2) circle [x radius=#3, y radius=#4];
\end{scope}
}
\begin{document}
\begin{tikzpicture}
\draw[](0,0) circle [radius=2cm];
\end{tikzpicture}
\end{document}
这就是我想要的……
答案1
答案2
我还是 Ti钾Z 初学者,所以我的尝试相当笨拙(但有效 ;-))
\documentclass[tikz]{standalone}
\usetikzlibrary{patterns,calc}
\newcommand{\greatcircle}[5][]{ \path[#1,pattern=north west lines,pattern color=#1!60,rotate=#5,dashed]
(#2) circle [x radius=#3, y radius=#4];
\begin{scope}[rotate=#5]
\clip (#3,0) rectangle ([xshift=-0.1,yshift=-0.1]-#3,-#4);
\draw[#1] (#2) circle [x radius=#3, y radius=#4];
\end{scope}
}
\begin{document}
\begin{tikzpicture}
\draw[](0,0) circle [radius=2cm];
\node (center) at (0,0) {};
\foreach \x in {0,20,...,360} {
\pgfmathcos{\x}
\edef\costemp{\pgfmathresult}
\pgfmathsin{\x}
\edef\sintemp{\pgfmathresult}
\draw (0,0) -- (2*\costemp,2*\sintemp);
}
\foreach \x in {0,1,...,17} {
\edef\currentangle{\pgfmathresult}
\pgfmathcos{\x*20}
\edef\costemp{\pgfmathresult}
\pgfmathsin{\x*20}
\edef\sintemp{\pgfmathresult}
\node (A\x) at (2.2*\costemp,2.2*\sintemp) {\x};
}
\end{tikzpicture}
\end{document}