Plotting Data with Tikz

View: New views
2 Messages — Rating Filter:   Alert me  

Plotting Data with Tikz

by tritonman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been trying to plot data using the tikz \datavisualization command as per
the example in the tikz manual, section V. E.g.,

\begin{tikzpicture}[scale=.5]
  \datavisualization [school book plot,smooth]
  data [format=function] {
    var x : interval [-2:2];
    func y = \value x*\value x;
  };
\end{tikzpicture}

should produce a nice quadratic function. However, I'm getting errors that say
\datavisualization is an undefined control sequence. I've tried using
\usetikzlibrary{} for anything I can see involving plotting, but that doesn't
seem to help.

Is this functionality still very much under development? Should I research
using the pgfplot package instead, as there seems to be a lot of discussion
about it on this mailing list? I'm a little cautious about doing this as I
want to move away from gnuplot.

Thanks,
Paul Weaver

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: Plotting Data with Tikz

by leon-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-06-11 17:14 +0100, Paul Weaver wrote:

> I've been trying to plot data using the tikz \datavisualization command as per
> the example in the tikz manual, section V. E.g.,
>
> \begin{tikzpicture}[scale=.5]
>   \datavisualization [school book plot,smooth]
>   data [format=function] {
>     var x : interval [-2:2];
>     func y = \value x*\value x;
>   };
> \end{tikzpicture}

I think this is in tikz/pgf CVS. There's a tds compatible build provided
here: http://www.texample.net/tikz/builds/2009/06/02/a/ . Check out the
pgfplots package too.

BTW, I wish a new version of pgf released for tl2009.

> should produce a nice quadratic function. However, I'm getting errors that say
> \datavisualization is an undefined control sequence. I've tried using
> \usetikzlibrary{} for anything I can see involving plotting, but that doesn't
> seem to help.
>
> Is this functionality still very much under development? Should I research
> using the pgfplot package instead, as there seems to be a lot of discussion
> about it on this mailing list? I'm a little cautious about doing this as I
> want to move away from gnuplot.
>
> Thanks,
> Paul Weaver

--
Leo's Emacs uptime: 1 day, 2 hours, 35 minutes, 1 second


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users