- 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:
Exceptions
|
|
DataError( 'Data array must be 1 or 2 dimensional' )
|
|
|