summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex26
1 files changed, 14 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex
index c8a38014dba..572e262dc50 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-points.tex
@@ -211,18 +211,20 @@ using spherical and cylindrical coordinates.
the $xy$-plane.
\begin{codeexample}[]
\begin{tikzpicture}
- \draw [->] (0,0) -- (1,0,0) node [right] {$x$};
- \draw [->] (0,0) -- (0,1,0) node [above] {$y$};
- \draw [->] (0,0) -- (0,0,1) node [below left] {$z$};
-
- \foreach \angle in {0,10,...,90}
- {\pgfpathcircle{\pgfpointspherical{\angle}{0}{1}}{2pt}}
- \pgfusepath{fill}
-
- \pgfsetcolor{red}
- \foreach \angle in {0,10,...,90}
- {\pgfpathcircle{\pgfpointspherical{80}{\angle}{1}}{2pt}}
- \pgfusepath{fill}
+ \pgfsetfillcolor{lightgray}
+
+ \foreach \latitude in {-90,-75,...,30}
+ {
+ \foreach \longitude in {0,20,...,360}
+ {
+ \pgfpathmoveto{\pgfpointspherical{\longitude}{\latitude}{1}}
+ \pgfpathlineto{\pgfpointspherical{\longitude+20}{\latitude}{1}}
+ \pgfpathlineto{\pgfpointspherical{\longitude+20}{\latitude+15}{1}}
+ \pgfpathlineto{\pgfpointspherical{\longitude}{\latitude+15}{1}}
+ \pgfpathclose
+ }
+ \pgfusepath{fill,stroke}
+ }
\end{tikzpicture}
\end{codeexample}
\end{command}