Table of Contents

Module: oldplot Gnuplot/oldplot.py
oldplot.py
Obsolete functional interface to Gnuplot.

This module implements a function plot that can be used to plot array data through the gnuplot program. It is provided for backwards compatibility with Konrad Hinsen's old module. The new object-oriented interface defined in Gnuplot.py has far more features and should be used for new work.

See Gnuplot.py and the README file for more information.

The module can be tested by typing python plot.py.

Imported modules   
import Gnuplot
from Gnuplot import Data, File, TempArrayFile, DataError
import Numeric
from gp import test_persist
from utils import float_array
Functions   
demo
plot
  demo 
demo ()

Demonstration.

  plot 
plot ( *items,  *keyw )

Plot data using gnuplot through Gnuplot.

This command is roughly compatible with old Gnuplot plot command. It is provided for backwards compatibility with the old functional interface only. It is recommended that you use the new object-oriented Gnuplot interface, which is much more flexible.

It can only plot Numeric array data. In this routine an NxM array is plotted as M-1 separate datasets, using columns 1:2, 1:3, ..., 1:M.

Limitations:

  • If persist is not available, the temporary files are not deleted until final python cleanup.

Exceptions   
DataError( 'Data array must be 1 or 2 dimensional' )

Table of Contents

This document was automatically generated on Mon Jul 29 17:26:13 2002 by HappyDoc version 2.0.1