/usr/share/doc/ktikz/examples/hfst11-meetkinterpretatie3.pgf is in ktikz 0.10-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 48 49 50 51 52 53 54 55 56 57 | \begin{tikzpicture}[x=1cm,y=1cm]
\tikzstyle{every node}+=[font=\small]
\definecolor{darkergreen}{rgb}{.1,.4,0}
\definecolor{darkeryellow}{rgb}{.4,.4,0}
\definecolor{lightgreen}{rgb}{.4,.7,.2}
\definecolor{lightyellow}{rgb}{.8,.8,.3}
\definecolor{darkblue}{rgb}{0,0,.6}
\def\ax{-.2} \def\ay{.5}
\def\bx{.6} \def\by{1.5}
\def\cx{2.4} \def\cy{-1.1}
\def\dx{3.4} \def\dy{.9}
\def\ex{5} \def\ey{-.9}
\def\fx{5.6} \def\fy{.8}
% oppervlaktes
\begin{scope}
\clip (0,0) rectangle (5.6,1.7);
\fill[lightgreen]
(\bx,0) -- (\bx,\by)
.. controls +(.6,0) and +(-.35,0) .. (\cx,\cy)
.. controls +(.5,0) and +(-.5,0) .. (\dx,\dy)
.. controls +(.5,0) and +(-.5,0) .. (\ex,\ey)
-- (\ex,0) -- cycle;
\end{scope}
\begin{scope}
\clip (0,0) rectangle (5.6,-1.2);
\fill[lightyellow]
(\bx,0) -- (\bx,\by)
.. controls +(.6,0) and +(-.35,0) .. (\cx,\cy)
.. controls +(.5,0) and +(-.5,0) .. (\dx,\dy)
.. controls +(.5,0) and +(-.5,0) .. (\ex,\ey)
-- (\ex,0) -- cycle;
\end{scope}
% hulplijnen
\draw[darkergreen] (\bx,0) -- (\bx,\by);
\draw[darkeryellow] (\ex,0) -- (\ex,\ey);
\node[below=-1] at (\bx,0) {$a$\strut};
\node[above=-1] at (\ex,0) {$b$\strut};
\node at (\bx+.45,.35) {$S_1$};
\node at (\cx,-.35) {$S_2$};
\node at (\dx+.1,.35) {$S_3$};
\node at (\ex-.22,-.35) {$S_4$};
% functie
\draw[thick,darkblue] (\ax,\ay)
.. controls +(.3,.6) and +(-.3,0) .. (\bx,\by)
.. controls +(.6,0) and +(-.35,0) .. (\cx,\cy)
.. controls +(.5,0) and +(-.5,0) .. (\dx,\dy)
.. controls +(.5,0) and +(-.5,0) .. (\ex,\ey)
.. controls +(.2,0) and +(-.2,-1) .. (\fx,\fy);
\node[darkblue] at (\fx,\fy) [above] {$f(x)$};
% assen
\draw[-stealth] (-.5,0) -- (6,0) node[below] {$x$};
\draw[-stealth] (0,-1.5) -- (0,2) node[left=-2] {$y$};
\end{tikzpicture}
|