Graphics, Figures & TablesAccessing individual table elements with pgfplots

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Naer
Posts: 1
Joined: Fri Apr 08, 2011 3:04 am

Accessing individual table elements with pgfplots

Post by Naer »

Hello!
I have some problem with example on this site: http://tex.stackexchange.com/questions/ ... h-pgfplots

Those lines:

Code: Select all

\pgfmathsetmacro{\rows}{\pgfplotsretval}
\pgfplotstablegetcolsof{\data} % Determine no. of cols
\pgfmathsetmacro{\cols}{\pgfplotsretval}
and commands:

Code: Select all

\pgfplotstablegetcolsof \pgfplotsretval
seem to not work completely.
Error messages:

Code: Select all

Undefined control sequence:  \pgfmathsetmacro{\cols}{\pgfplotsretval}(followed by:)
Undefined control sequence:  \pgfmathsetmacro{\rows}{\pgfplotsretval} (followed by: )
Undefined control sequence:  \pgfplotstablegetcolsof (followed by: {\data} % Determine no. of cols)
Undefined control sequence:  \pgfplotstablegetcolsof{\data (followed by: } % Determine no. of cols)
What is wrong? Some package is missing?

I'm running Debian Sid with texlive (2009-11) and pgf (2.10-1)

Thanks for any help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply