I find two possible ways in drawing a graph out of data points: Using PGFPlots with
\begin{axis}
\addplot[smooth,color=red,mark=x]
or the Data Visualization inside Tikz (p. 756 in the manual):
\datavisualization [school book axes, visualize as smooth line]
It seems that I could use both machnics for creating my easiy graphic, however is one approach much better or are both the same as they based both on tikz and just have different syntax? Which one is better for future compatibility or is more flexibel?
I just want to make an 2d axis with two graphs and 20 datapoints each, so just very basic things.
pgfplots
.