[pstricks] First try with \multido
Werner Grundlingh
wgrundlingh at gmail.com
Thu Nov 5 20:57:56 CET 2015
Here's an abbreviated version that provides what you're after...
\documentclass{article}
\usepackage{pst-plot,multido}
\begin{document}
\SpecialCoor %PSTricks polar coordinates
\psset{unit=2cm}
\begin{pspicture}(-3.5,-3.5)(3.5,3.5)
\psaxes[ticksize=2pt, labels=none]{->}(0,0)(-3.1,-3.1)(3.2,3.2)
\psset{linewidth=0.5pt}
\multido{\iRadius=1+1}{3}{\pscircle(0,0){\iRadius}}
\psset{linestyle=dotted}
\multido{\iAngle=0+15,\iRay=0+1}{24}{
\psline(0;0)(3;\iAngle)
\rput(3.35;\iAngle){%
$\scriptstyle
\ifnum\iRay=0
0 % 0 degrees
\else\ifnum\iRay=12
\pi % 180 degrees
\else
\frac{\iRay\pi}{12}
\fi\fi$
}
}
\end{pspicture}
\end{document}
[image: Inline image 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20151105/dbd1fb31/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 86414 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20151105/dbd1fb31/attachment-0001.png>
More information about the PSTricks
mailing list