Am Fri, 22 May 2015 07:48:05 -0700 (PDT) schrieb Dave94705:
> Can anyone tell me why below example, basically copied right off
> of page 743 of Tikz manual, chokes?
> Error message given is:
> ! Package pgf Error: Unknown data format 'function'.
Well apart from the missing \begin{document}: You are not loading
the library for the functions:
\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\usetikzlibrary{datavisualization.formats.functions} %
\begin{document}
\begin{tikzpicture}[scale=.7]
\datavisualization [school book axes, visualize as smooth line]
data [format=function] {
var x : interval [-2:2];
func y = \value x*\value x + 1;
};
\end{tikzpicture}
\end{document}
see 76.4 Reference: Advanced Formats
--
Ulrike Fischer
http://www.troubleshooting-tex.de/