summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/voss/bsp59.tex
blob: d75b2003c0ceaddb825966291b7127dddd38cb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\usepackage{bm}
\pagestyle{empty}
\parindent=0pt

\begin{document}

\begin{center}
\begin{pspicture}(-0.5,-0.5)(7,5)
  \pscustom[linewidth=1pt,fillstyle=hlines,hatchcolor=red]{
    \psplot[linewidth=1pt]{2}{5}{%
     x x mul neg x 6 mul add 5 sub}
    \psplot[linewidth=1pt]{5}{2}{%
     x x mul neg 3 div x 4 mul 3 div add 5 3 div add}
  }
  \pscustom[linewidth=1pt,fillstyle=vlines,hatchcolor=blue]{
    \psline(0,1.666667)
    \psplot[linewidth=1pt]{0}{2}{%
       x x mul neg 3 div x 4 mul 3 div add 5 3 div add}
    \psplot[linewidth=1pt]{2}{1}{%
     x x mul neg x 6 mul add 5 sub}
  }
  \psaxes[xyLabel=\footnotesize]{->}(0,0)(-0.5,-0.5)(7,5)
  \uput[-90](7,0){$\bm{x}$}
  \uput[0](0,5){$\bm{y}$}
  \psplot[linewidth=1pt]{0.75}{5.25}{%
     x x mul neg x 6 mul add 5 sub}
  \psplot[linewidth=1pt]{0}{5.25}{%
     x x mul neg 3 div x 4 mul 3 div add 5 3 div add}
  \rput(5,2){$\bm{f}$}
  \rput(3,2){$\bm{g}$}
\end{pspicture}
\end{center}

\end{document}