up previous next
GnuPlot.Plot

Tries to plot the given data by using Gnu Plot.
Syntax
          
GnuPlot.Plot(Data:LIST, NumVars:INT)

          

Description
This function tries to plot the input using Gnu Plot.

Example
--Plots some points in red
GnuPlot.Plot([[[[1,1],[2,2],[3,3]],"red","Graph 1"]],1);


Example
--Plots the graph of two polynomials
GnuPlot.Plot([[x^2+x+1,"red","Graph 1"],[-3x^2-x-2,"blue","Graph 2"]],1);


Example
--Plots a rational function in 3D
GnuPlot.Plot([[x^2+x+1/x^2y^2,"red","Graph 1"]],2);