|
From: BBands <bb...@gm...> - 2011-05-09 21:40:16
|
If you have a look at the interface class you'll see that exe() is
used to pass commands directly to gnuplot. For example: $p->exe("splot
x*y\n");
So to plot the sine of x $p->exe("plot sin(x)\n"); should work.
The author is MIA; perhaps you might take up the maintenance of this
interesting project.
jab
On Mon, May 9, 2011 at 2:27 PM, e-letter <in...@gm...> wrote:
> I am having difficulty to understand the syntax of this file.
>
> The php interface class file was saved as a php file in the web server
> directory, i.e. /var/www/html.
>
> A now php file was created, with the command 'include' to reference to
> the php interface file in the web server directory.
>
> Part of the interface file states that there is class to activate
> gnuplot, but how to test with a simple command?
>
> plot sin(x)
>
> So that the image is created in png format as an image element in an
> html file which embeds the php script.
>
> It seems that the function 'plotData' should be used, but how?
|