Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Pike Module Reference:

module version 1, prepared

  MODULE module
Modules
Gnuplot

  MODULE module.Gnuplot
Classes
Gnuplot


Import

  CLASS module.Gnuplot.Gnuplot
Methods
parametricPlot()
parametricSplot()
plot()
quit()
save2postscript()
set()
setGrid()
setParametric()
splot()
surfaceSplot()
unset()
unsetGrid()
unsetParametric()
update()
write()
Description

An instance of the Gnuplot class is a pipe to a running gnuplot. You can use write to send orders to It, or use some of the methods defined in this class to do It.


Inherit Pipe

  • Pipe

  • Method write

    void module.Gnuplot.Gnuplot()->write(string what)

    Description

    This method is just like the analog method in class Pipe, but adds a '\n' for convenience.


    Method quit

    void module.Gnuplot.Gnuplot()->quit()

    Description

    Closes the running gnuplot.


    Method plot

    void module.Gnuplot.Gnuplot()->plot(string func)

    Description

    Plots f(x). Example: plot( "sin(x)" );


    Method parametricPlot

    void module.Gnuplot.Gnuplot()->parametricPlot(string func)

    Description

    When doing 2D parametric plots, the parameter is t. Example: to draw a circle, just do parametricPlot( " cos(t), sin(t) " );


    Method splot

    void module.Gnuplot.Gnuplot()->splot(string func)

    Description

    Plots f(x,y). Example: plot("sin(x) * cos(y)") ;


    Method parametricSplot

    void module.Gnuplot.Gnuplot()->parametricSplot(string func)

    Description

    When doing 3D parametric plots, the parameters are u and v.


    Method surfaceSplot

    void module.Gnuplot.Gnuplot()->surfaceSplot(string func)

    Description

    Uses the pm3d option to draw surface maps.


    Method set

    void module.Gnuplot.Gnuplot()->set(string what)

    Description

    Sets some property of gnuplot.


    Method unset

    void module.Gnuplot.Gnuplot()->unset(string what)

    Description

    Unsets some property of gnuplot.


    Method setGrid

    void module.Gnuplot.Gnuplot()->setGrid()

    Description

    Enables the grid.


    Method unsetGrid

    void module.Gnuplot.Gnuplot()->unsetGrid()

    Description

    Disables the grid.


    Method setParametric

    void module.Gnuplot.Gnuplot()->setParametric()

    Description

    Enables the parametric mode.


    Method unsetParametric

    void module.Gnuplot.Gnuplot()->unsetParametric()

    Description

    Disables the parametric mode.


    Method update

    void module.Gnuplot.Gnuplot()->update()

    Description

    Updates the screen


    Method save2postscript

    void module.Gnuplot.Gnuplot()->save2postscript(string filename)

    Description

    Saves a postscript copy of the screen. This method has something similar to a bug: if your screen has a parametric plot on It, this doesn't work. In that case, please do setParametric() ; save2postscript() ; unsetParametric();

    gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University