I'm trying to plot some points with sudden changes in the slope. But I get some strange behavior like this:

as you can see in the peaks, there is no smoothness in there.
However, I think the problem is the interpolation algorithm, because tikz uses bézier curves. So I'm wondering is there a way to overcome this problem?
I'm putting here just a sample of the data. However, I have several plots with these discontinuities, and I would like to get an automatic way of fixing them. If you need I can show more points in which discontinuities occur.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotstableread{
0.0000 0.0000
0.1561 0.8615
0.1614 0.8643
0.1669 0.8670
0.3619 0.8670
0.3679 0.8781
0.3739 0.8809
0.3799 0.8809
0.3858 0.8837
0.3918 0.8975
1.0000 1.0000
}\datatable
\begin{document}
\makeatletter
\begin{tikzpicture}
\begin{axis}[
ylabel=label,
no markers,
smooth
]
\addplot table [x index=0, y index=1] \datatable;
\end{axis}
\end{tikzpicture}
\end{document}
sharp plotinstead ofsmooth. Your example immediately and automatically looks great if you uncommentsmooth. Note thatsmoothshould be considered as "draw something somehow nicely" rather than "interpolate strictly using high order interpolation". – Christian Feuersänger Dec 02 '11 at 20:54