[pstricks] sin, cos and cutting area

Michael Niedermair m.g.n at gmx.de
Fri Oct 26 12:38:58 CEST 2007


Thanks for the two answers.

I use:

\psset{xunit=0.01cm,linewidth=0.5pt}
\begin{pspicture}(-5,-2.5)(5,6)

    \pscustom[linestyle=none,fillstyle=solid,fillcolor=gray]{%
       \psplot[plotpoints=200,algebraic=true]{45}{225}{x sin}
       \psplot[plotpoints=200,algebraic=true]{45}{225}{x cos}
    }
    \pscustom[linestyle=none,fillstyle=solid,fillcolor=gray]{%
       \psplot[plotpoints=200,algebraic=true]{0}{45}{x sin}
       \psplot[plotpoints=200,algebraic=true]{45}{0}{x cos}
       \moveto(0,0)
    }
    \pscustom[linestyle=none,fillstyle=solid,fillcolor=gray]{%
       \psplot[plotpoints=200,algebraic=true]{225}{360}{x cos}
       \psplot[plotpoints=200,algebraic=true]{360}{225}{x sin}
       \closepath
    }

    \psplot[plotpoints=200,plotstyle=curve]{0}{360}{x sin}
    \psplot[plotpoints=200,plotstyle=curve]{0}{360}{x cos}

    \psline{->}(0,0)(380,0)
    \psline{->}(0,-1)(0,1.5)

    \psline[linecolor=blue]{-}(45,-1.5)(45,1.2)
    \psline[linecolor=blue]{-}(225,-1.5)(225,1.2)
    \psline[linecolor=blue]{-}(360,-1.5)(360,1.2)

\end{pspicture}

By
Michael




More information about the PSTricks mailing list