__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.
|