__init__ (
self,
file,
**keyw,
)
Construct a File object.
<file> can be either a string holding the filename of an
existing file, or it can be an object of any class derived
from AnyFile (such as a TempArrayFile ).
Keyword arguments:
-
using=<int>
- plot that column against line number
-
using=<tuple>
- plot using a:b:c:d etc.
-
using=<string>
- plot `using <string>' (allows gnuplot's
arbitrary column arithmetic)
-
binary=<boolean>
- data in file is in binary format
(only recognized for grid data for splot).
-
smooth=<string>
- smooth the data. Option should be
unique , csplines , acsplines , bezier , or
sbezier .
The keyword arguments recognized by PlotItem can also be
used here.
Note that the using option is interpreted by gnuplot, so
columns must be numbered starting with 1. The default title
for a TempFile is notitle to avoid using the temporary
file's name as the title.
Exceptions
|
|
Errors.OptionError('file argument (%s) must be a file object or filename' %( file, ) )
|
|