%!TEX pdflatex

\documentclass{article}
\usepackage{ProfLycee}

\NewDocumentCommand\PtsDiscontinuite{ O{D} m }{%
	\setsepchar[.]{§./}%
	\readlist*\SPLlisteDiscont{#2}%
	\def\SPLlisteDiscontNb{\SPLlisteDiscontlen}%
	\foreach \i in {1,...,\SPLlisteDiscontNb}{%
		\begin{scope}[shift={(\SPLlisteDiscont[\i,1],\SPLlisteDiscont[\i,2])},rotate={atan \SPLlisteDiscont[\i,3]}]
			\IfStrEq{#1}{D}%
				{%
					\draw[line width=\SPLepaisseur,\SPLcouleur,\SPLstyle] (0,0) to[out=90,in=170] (4pt,6pt) ;
					\draw[line width=\SPLepaisseur,\SPLcouleur,\SPLstyle] (0,0) to[out=-90,in=-170] (4pt,-6pt) ;
				}%
				{%
					\draw[line width=\SPLepaisseur,\SPLcouleur,\SPLstyle] (0,0) to[out=90,in=-10] (-4pt,6pt) ;
					\draw[line width=\SPLepaisseur,\SPLcouleur,\SPLstyle] (0,0) to[out=-90,in=10] (-4pt,-6pt) ;
				}%
			
		\end{scope}
	}%
}

\begin{document}

\begin{tikzpicture}
	\draw[gray] (-1,-1) grid (5,2) ;
	\SplineTikz{0/0/-1 § 4/1/1}
	\PtsDiscontinuite{4/1/1}
	\PtsDiscontinuite[G]{0/0/-1}
\end{tikzpicture}

\end{document}