Table of Contents

Class: Data Gnuplot/PlotItems.py

Represents data from memory to be plotted with Gnuplot.

Takes a numeric array from memory and outputs it to a temporary file that can be plotted by gnuplot.

Base Classes   
PlotItem
Methods   
__init__
pipein
  __init__ 
__init__ (
        self,
        *set,
        *keyw,
        )

Construct a Data object from a numeric array.

Create a Data object (which is a type of PlotItem) out of one or more Float Python Numeric arrays (or objects that can be converted to a Float Numeric array). If the routine is passed one array, the last index ranges over the values comprising a single data point (e.g., [, , ]) and the rest of the indices select the data point. If the routine is passed more than one array, they must have identical shapes, and then each data point is composed of one point from each array. E.g., Data(x,x**2) is a PlotItem that represents x squared as a function of x. For the output format, see the comments for write_array().

The array is first written to a temporary file, then that file is plotted. No copy is kept in memory.

Keyword arguments:

cols=

write only the specified columns from each data point to the file. Since cols is used by python, the columns should be numbered in the python style (starting from 0), not the gnuplot style (starting from 1).

inline=

transmit the data to gnuplot "inline" rather than through a temporary file. The default is the value of gp.GnuplotOpts.prefer_inline_data.

smooth=

smooth the data. Option should be unique, csplines, acsplines, bezier, or sbezier.

The keyword arguments recognized by PlotItem can also be used here.

  pipein 
pipein ( self,  f )


Table of Contents

This document was automatically generated on Fri Jan 26 14:06:11 2001 by HappyDoc version r0_9_2