[pstricks] sin, cos and cutting area

Hensh, Richard hensh at math.msu.edu
Thu Oct 25 18:44:31 CEST 2007


Try

\def \xmin {-6}\def \xmax {6}
\def \ymin {-6}\def \ymax {6}
\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)%\showgrid
    \pstVerb{%
        /Pi {3.141592653589793238} def %
        /rad2deg {180 mul Pi div} def %
        /angA {Pi 4 div} def %
        /angB {angA Pi add} def %
        }
    \psclip{\myframe(\xmin,\ymin)(\xmax,\ymax)}
       \pscustom[fillstyle=crosshatch,fillcolor=gray]{%
        \psplot[plotpoints=200,plotstyle=curve]{angA}{angB}{x rad2deg sin}
        \psplot[plotpoints=200,plotstyle=curve]{angB}{angA}{x rad2deg cos}
        }
    \endpsclip
\end{pspicture}

-----Original Message-----
From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On Behalf Of Michael Niedermair
Sent: Thursday, October 25, 2007 11:44 AM
To: Graphics with PSTricks
Subject: [pstricks] sin, cos and cutting area

Hi,

i have sin(x) and cos(x).

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

Is it possible, to mark (fill with color) the cutting area between 45 and 225?

By
Michael
_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list