Table of contents Index

class ArrayFile - A file to which, upon creation, an array is written.

Declared in module Gnuplot

Inheritance hierarchy:

Gnuplot.ArrayFile
  Gnuplot.AnyFile

Synopsis

class ArrayFile(AnyFile):
    def __init__(self, set, filename=None) # Create a file and write an array to it.

    # Inherited from Gnuplot.AnyFile
    def __init__(self, filename=None) # Make an 'AnyFile' referencing the file with name 'filename'.

Description

When an ArrayFile is constructed, it creates a file and fills it with the contents of a 2-d or 3-d Numeric array in the format expected by gnuplot (see write_array() for details). The filename can be specified, otherwise a random filename is chosen. The file is NOT deleted automatically.

__init__(self, filename=None)

Make an 'AnyFile' referencing the file with name 'filename'.

If filename is not specified, choose a random filename (but do not create the file).


Valid HTML 4.0! Made with CSS