[pstricks] polar grid within a square

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Apr 24 12:19:58 CEST 2009


Hom Nath Gharti schrieb:
> I was trying to draw something like in the
> attached figure. I can draw using some loop of circles and lines, but I was
> thinking if there is some command in pstricks which draws such a grid in a
> efficient manner like Cartesian grids.

with the pstricks-add.tex from
http://voss.homedns.org/packages/pstricks-add/
you can use the axesstyle polar:

\documentclass{article}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}

\begin{pspicture}(-3,-3)(3,3)
\psaxes[axesstyle=polar,subticklinestyle=dashed,subticks=2](5,5)
\psplot[polarplot,algebraic,linecolor=red,linewidth=2pt,
    unit=10,plotpoints=2000]{0}{TwoPi}{sin(x)*cos(x)}
\end{pspicture}

\end{document}


attached the output of this example.

Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xx.png
Type: image/png
Size: 16878 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090424/9da16eba/attachment-0001.png 


More information about the PSTricks mailing list