@Werner Unfortunately not, I got the image from a friend. Don't know where he got it. But its for an assignment I am writing for my students and the illustration would expedite the explanation in the assignment.
–
azetinaJan 20 '14 at 20:06

9 Answers
9

Starting from here… pretty similar to @AEllet solution. (Adapted) Suggestion of Sigur, the optional argument pases everything to the tikzpicture environment and thanks to Sigur for the 90 degree angle mark ;)

By the way, this spiral is known as Spiral of Theodorus. Just in case you need some extra data.

If we test with large number, 12 for example, we see that the root labels are not so spiraled. Using left instead of auto produces a better view on it.
–
SigurJan 20 '14 at 21:19

1

Well observed. node[fill=white] could be a solution.
–
SigurJan 20 '14 at 21:29

I agree. Also, what do you think to use an optional argument to pass the value for scale. So we can use if necessary \sqrtspiral[2]{16}. I tested here and it was a good idea. Just use \newcommand*{\sqrtspiral}[2][1]{ and #1 is for [scale=#1] and #2 is for \def\sqrtlast{#2}.
–
SigurJan 20 '14 at 21:32

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{multido}
\SpecialCoor \def\iB{15}
\begin{document}
\begin{pspicture}(-3,-4)(4,2)
\pscustom[linecolor=blue,linejoin=2]{%
\psline(1,0)% the first line
\multido{\iA=1+1}{\iB}{% the loop
\rlineto(0,1)% a relative line with dx=0 and dy=1
\psline(0,0)(!!CP)% a line from origin to currentpoint
\rotate{!1 \iA\space sqrt atan }}}% rotate everything by atan(1,sqrt(\iA))
\end{pspicture}
\end{document}