[pstricks] Protractor

David Arnold dwarnold45 at suddenlink.net
Fri May 8 07:48:55 CEST 2009


Werner,

Thanks for the tip. I finally settled on this:

\documentclass{article} %David Arnold
\usepackage{pstricks,multido}
\SpecialCoor
\begin{document}

\begin{pspicture}(-5,-5)(5,5)
	\psarc[fillstyle=solid,fillcolor=white](0,0){5}{0}{180}
	\psline(-5,0)(5,0)
	\psarc[fillstyle=solid,fillcolor=white](0,0){0.1}{0}{180}
	\multido{\iA=10+10,\iB=-80+10}{17}{\rput{\iB}(4.0;\iA){\iA}}
	\multido{\i=0+10}{18}{\psline[linecolor=blue](4.3;\i)(5;\i)}
	\multido{\i=0+1}{180}{\psline[linecolor=red](4.6;\i)(5;\i)}
	\psarc[fillstyle=solid,fillcolor=white](0,0){3.5}{15}{165}
	\psline(3.5;15)(3.5;165)

\end{pspicture}
\end{document}

Pretty nice! But suggestions are welcome.

David.


On May 6, 2009, at 11:48 AM, Werner Grundlingh wrote:

On Wed, May 6, 2009 at 11:42, David Arnold  
<dwarnold45 at suddenlink.net> wrote:
> All,
>
> Anyone have code for a protractor?
>
> Found this one: http://www.tug.org/PSTricks/Examples/rose.png
>
> But looking for a half of this, 0 to 180 degrees.
>
> David

Perhaps you could use/modify the code taken from the original PStricks
examples page - it's attached. Available online from:
   http://www.tug.org/PSTricks/main.cgi?file=examples

Werner<bsp116.pdf><bsp116.tex>__________________________________________ 
_____
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list