
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.6cm,y=0.6cm]
\begin{axis}[
x=0.6cm,y=0.6cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-4.428876054259827,
xmax=8.442249746684222,
ymin=-1.8579109366203779,
ymax=2.8052657158572094,
xtick={-4.0,-3.0,...,8.0},
ytick={-1.0,0.0,...,2.0},]
\clip(-4.428876054259827,-1.8579109366203779) rectangle (8.442249746684222,2.8052657158572094);

\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=1.pt,domain=-4.0:1.0)] plot (\x,{(-0.004*(\x)^3+-0.108*(\x)^2+-0.672*(\x)+0.784)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=1.pt,domain=1.0:2.0)] plot (\x,{(1.1*(\x)^3+-4.5*(\x)^2+4.8*(\x)+-1.4)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=1.pt,domain=2.0:4.0)] plot (\x,{(-0.075*(\x)^3+0.85*(\x)^2+-2.5*(\x)+1.2)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=1.pt,domain=4.0:7.0)] plot (\x,{(-0.07037*(\x)^3+1.04444*(\x)^2+-4.27778*(\x)+4.9037)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=1.pt,domain=7.0:8.0)] plot (\x,{(1.0*(\x)^3+-25.0*(\x)^2+203.0*(\x)+-537.0)/1.0}););

\begin{scriptsize}
\draw [color=black] (-4.,2.)-- ++(-2.5pt,0 pt) -- ++(5.0pt,0 pt) ++(-2.5pt,-2.5pt) -- ++(0 pt,5.0pt);
\draw [color=black] (1.,0.)-- ++(-1.5pt,0 pt) -- ++(3.0pt,0 pt) ++(-1.5pt,-1.5pt) -- ++(0 pt,3.0pt);
\draw [color=black] (2.,-1.)-- ++(-1.5pt,0 pt) -- ++(3.0pt,0 pt) ++(-1.5pt,-1.5pt) -- ++(0 pt,3.0pt);
\draw [color=black] (4.,0.)-- ++(-1.5pt,0 pt) -- ++(3.0pt,0 pt) ++(-1.5pt,-1.5pt) -- ++(0 pt,3.0pt);
\draw [color=black] (7.,2.)-- ++(-1.5pt,0 pt) -- ++(3.0pt,0 pt) ++(-1.5pt,-1.5pt) -- ++(0 pt,3.0pt);
\draw [color=black] (8.,-1.)-- ++(-2.5pt,0 pt) -- ++(5.0pt,0 pt) ++(-2.5pt,-2.5pt) -- ++(0 pt,5.0pt);
\end{scriptsize}
\end{axis}
\end{tikzpicture}
