Example : Polar Plotting - Folium

%!
newpath
250 600 translate
0 0 moveto
/span 1 def
/t 0 def
/r { t 5 mul sin} def
/x { t cos r mul 180 mul} def
/y { t sin r mul 180 mul} def
360 {/t t span add def
x y lineto } repeat
stroke
showpage
The PostScript programming language is designed to describe the layout of graphics and text on the printed page. This website provides online utilities that show examples in actual practice.
Example : Polar Plotting - Folium

%!
newpath
250 600 translate
0 0 moveto
/span 1 def
/t 0 def
/r { t 5 mul sin} def
/x { t cos r mul 180 mul} def
/y { t sin r mul 180 mul} def
360 {/t t span add def
x y lineto } repeat
stroke
showpage