summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/subfigur.tex
blob: bd708d0c48406f548101ab1f3d5b9c3eeb0cff03 (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
39
40
41
42
43
44
45
46
47
\documentclass[a4paper,12pt]{report}
\usepackage{german}
\usepackage[hang]{subfigure}
\usepackage{pstricks,pst-plot}
\begin{document}

Abbildung~\ref{func} zeigt die Graphen einiger elementarer Funktionen,
Teilabbildung~\ref{rat} einige rationale Funktionen.

\begin{figure}\centering
\subfigure[Trigonometrische Funktionen: $\sin x$ und
  $\cos x$\label{trig}]
  {\psset{xunit=5mm, yunit=13mm}
   \pspicture(-5,-1.5)(5,1.5)
   \psaxes{->}(0,0)(-5,-1.5)(5,1.5)
   \psplot{-5}{5}{x 3.14159 div 90 mul sin}
   \psplot[linestyle=dotted]{-5}{5}{x 3.14159 div 90 mul cos}
   \endpspicture
  }
\hfil
\subfigure[Rationale Funktionen: $x^2$, $x^3$ und
  $\frac{x^3}{4}-x^2$\label{pot}]
  {\psset{xunit=5mm, yunit=0.67mm}
   \pspicture(-5,-30)(5,30)
   \psaxes[Dy=10,dy=10]{->}(0,0)(-5,-30)(5,30)
   \psplot{-5}{5}{x dup mul}
   \psplot[linestyle=dotted]{-3}{3}{x dup mul x mul}
   \psplot[linestyle=dashed]{-4}{5}{x dup mul dup neg exch
     x mul 4 div add}
   \endpspicture
  }

\subfigure[Gebrochen rationale Funktionen: $\frac{1}{x}$ und
  $\frac{1}{x^2}$\label{rat}]
  {\psset{xunit=5mm, yunit=4mm}
   \pspicture(-5,-5)(5,5)
   \psaxes{->}(0,0)(-5,-5)(5,5)
   \psplot{-5}{-.5}{1 x div} \psplot{.5}{5}{1 x div}
   \psplot[linestyle=dotted]{-5}{-.5}{1 x dup mul div}
   \psplot[linestyle=dotted]{.5}{5}{1 x dup mul  div}
   \endpspicture
  }

\caption{Eine Kollektion von Funktionsgraphen.\label{func}}
\end{figure}

\end{document}