% X. Rendtel
% Letzte Aenderung: 23.11.2008

\documentclass[10pt, a4paper]{article}
\usepackage[utf8x]{inputenc} 
\usepackage[tight]{units}
\usepackage{euler}
\usepackage{calc}
\usepackage{pstricks}
\usepackage{rotating}

\usepackage{pst-pdf}
\usepackage{pst-node}

\usepackage{xcolor}
\usepackage{graphicx}
%\usepackage{multido}
\usepackage{pst-circ}
\usepackage{pst-func}
\usepackage{pst-math}

\usepackage{pst-eucl}
\usepackage{fancyhdr}
\pagestyle{fancyplain}

\usepackage{pstricks-add}
\usepackage[greek,german]{babel}

\usepackage{pst-tree}

\thispagestyle{empty}
\pagestyle{empty}

%\SpecialCoor

\usepackage[LGR,T1]{fontenc}
\usepackage{mathpazo,avant,courier}
\newcommand{\EUR}{\textgreek{\euro}}

\makeatletter
\newcommand{\psxpoint}[3][black]{%
  \psline[linewidth=.5pt]{-}(#2,\pst@xticksizeB)(#2,\pst@xticksizeA)
  \rput[t](! #2 \pst@number\pslabelsep \pst@number\pst@xticksizeB add 
	\pst@number\psyunit div neg ){\color{#1}#3}}
\makeatother


\makeatletter
\newcommand{\psypoint}[3][black]{%
  \psline[linewidth=.5pt]{-}(\pst@yticksizeB,#2)(\pst@yticksizeA,#2)
  \rput[r](! \pst@number\pslabelsep \pst@number\pst@yticksizeA sub 
	\pst@number\psxunit div neg #2){\color{#1}#3}}
\makeatother

\def\myLine#1(#2)(#3)#4{{%
  \pnode(#2){myA}\pnode(#3){myB}%
  \pcline[linestyle=dashed,tbarsize=15pt]{#1}(myA)(myB)%
  \ncput*{#4}}}



\newcommand{\knoten}[2][white]
{\Tr{\psframebox[fillcolor=#1!50,fillstyle=solid]{#2}}}

\begin{document}
\psset{xunit=1cm,yunit=1cm,dotstyle=*,dotsize=3pt
0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}

\begin{pspicture*}(-6,-6)(8,11)
\psgrid[subgriddiv=2,gridlabels=0,gridcolor=lightgray,subgridcolor=lightgray](0,
0)(-8,-5)(6,9)
\psaxes[xAxis=true,yAxis=true,Dx=1,Dy=1,ticksize=-2pt
0,subticks=2]{->}(0,0)(-8,-5)(6,9)
\psplot[algebraic=true]{-6}{0.25}{x^2+6*x+7}
\rput[bl](-6.34,10.22){$f$}
\psdots[dotsize=4pt](0,7)
\rput[bl](0.08,7.12){\large{$P_1$}}
\psdots[dotsize=4pt](-3,-2)
\rput[bl](-2.92,-1.88){\large{$S$}}
\psdots[dotsize=4pt](-5,2)
\rput[bl](-4.92,2.12){\large{$P_2$}}
\uput[-90](6,0){$x$}
\uput[0](0,9){$y$}
\end{pspicture*}
\end{document}

