[pstricks] First try with \multido
Scott, Randy
Scott_Randy at sccollege.edu
Thu Nov 5 21:01:58 CET 2015
Thanks Werner, I'll study that.
Randy
Sent from my iPhone
On Nov 5, 2015, at 11:59 AM, Werner Grundlingh <wgrundlingh at gmail.com<mailto:wgrundlingh at gmail.com>> wrote:
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}
[Inline image 1]
_______________________________________________
PSTricks mailing list
PSTricks at tug.org<mailto:PSTricks at tug.org>
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 86414 bytes
Desc: image.png
URL: <http://tug.org/pipermail/pstricks/attachments/20151105/5cf45139/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 86414 bytes
Desc: image.png
URL: <http://tug.org/pipermail/pstricks/attachments/20151105/5cf45139/attachment-0003.png>
More information about the PSTricks
mailing list