1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
"http://www.w3.org/TR/html40/loose.dtd">
7
<title>Class: _FileItem</title>
10
<body bgcolor="#ffffff">
12
<p><i><a href="../../index.html">Table of Contents</a></i></p>
14
<table border="0" cellpadding="5" cellspacing="0" width="100%">
20
bgcolor="#88bbee"><font color="#000000">Class: _FileItem</font>
24
align="right"><font color="#000000">Gnuplot/PlotItems.py</font>
30
<h3>A PlotItem representing a file that contains gnuplot data.</h3>
31
<p> This class is not meant for users but rather as a base class for
32
other types of FileItem.</p>
33
<table border="0" cellpadding="5" cellspacing="0" width="100%">
42
<font color="#000000">
43
<a name="Base Classes">Base Classes</a>
51
<font color="#000000"> </font>
57
<a href="PlotItem.html">PlotItem</a><br>
61
<table border="0" cellpadding="5" cellspacing="0" width="100%">
70
<font color="#000000">
71
<a name="Methods">Methods</a>
79
<font color="#000000"> </font>
85
<a href="#__init__">__init__</a><br>
86
<a href="#get_base_command_string">get_base_command_string</a><br>
87
<a href="#set_option_binary">set_option_binary</a><br>
88
<a href="#set_option_colonsep">set_option_colonsep</a><br>
98
<font color="#000000">
99
<a name="__init__"></a>
102
<th bgcolor="#99ccff"
107
<font color="#000000">__init__ </font>
112
<font color="#000088"><pre>
121
<h3>Represent a PlotItem that gnuplot treates as a file.</h3>
122
<p> This class holds the information that is needed to construct
123
the plot command line, including options that are specific to
124
file-like gnuplot input.</p>
125
<p> <filename> is a string representing the filename to be passed
126
to gnuplot within quotes. It may be the name of an existing
127
file, <code>-</code> for inline data, or the name of a named pipe.</p>
128
<h4> Keyword arguments:</h4>
130
<dt> <code>using=<int></code></dt>
131
<dd>plot that column against line number</dd>
132
<dt> <code>using=<tuple></code></dt>
133
<dd>plot using a:b:c:d etc. Elements in
134
the tuple that are None are output as the empty
136
<dt> <code>using=<string></code></dt>
137
<dd>plot `using <string>' (allows gnuplot's
138
arbitrary column arithmetic)</dd>
139
<dt> <code>every=<value></code></dt>
140
<dd>plot <code>every <value></code>. <value> is
141
formatted as for <code>using</code> option.</dd>
142
<dt> <code>index=<value></code></dt>
143
<dd>plot <code>index <value></code>. <value> is
144
formatted as for <code>using</code> option.</dd>
145
<dt> <code>binary=<boolean></code></dt>
146
<dd>data in the file is in binary format
147
(this option is only allowed for grid data for splot).</dd>
148
<dt> <code>smooth=<string></code></dt>
149
<dd>smooth the data. Option should be
150
<code>unique</code>, <code>csplines</code>, <code>acsplines</code>, <code>bezier</code>, or
151
<code>sbezier</code>.</dd>
153
<p> The keyword arguments recognized by <code>PlotItem</code> can also be
155
<p> Note that the <code>using</code> option is interpreted by gnuplot, so
156
columns must be numbered starting with 1.</p>
157
<p> By default, gnuplot uses the name of the file plus any <code>using</code>
158
option as the dataset title. If you want another title, set
159
it explicitly using the <code>title</code> option.</p>
162
<th bgcolor="#99ccff"
168
<font color="#000000">
169
<a name="get_base_command_string"></a>
172
<th bgcolor="#99ccff"
177
<font color="#000000">get_base_command_string </font>
182
<font color="#000088"><pre>
183
get_base_command_string ( self )
189
<th bgcolor="#99ccff"
195
<font color="#000000">
196
<a name="set_option_binary"></a>
199
<th bgcolor="#99ccff"
204
<font color="#000000">set_option_binary </font>
209
<font color="#000088"><pre>
210
set_option_binary ( self, binary )
214
<table border="0" cellpadding="5" cellspacing="0" width="100%">
217
<th bgcolor="#99ccff"
223
<font color="#000000">
224
<a name="Exceptions">Exceptions</a>
227
<th bgcolor="#99ccff"
232
<font color="#000000"> </font>
238
Errors.OptionError( 'Gnuplot.py is currently configured to reject binary data' )<br>
244
<th bgcolor="#99ccff"
250
<font color="#000000">
251
<a name="set_option_colonsep"></a>
254
<th bgcolor="#99ccff"
259
<font color="#000000">set_option_colonsep </font>
264
<font color="#000088"><pre>
265
set_option_colonsep (
273
<table border="0" cellpadding="5" cellspacing="0" width="100%">
276
<th bgcolor="#99ccff"
282
<font color="#000000">
283
<a name="Exceptions">Exceptions</a>
286
<th bgcolor="#99ccff"
291
<font color="#000000"> </font>
297
Errors.OptionError('%s=%s' %( name, value, ) )<br>
311
<p><i><a href="../../index.html">Table of Contents</a></i></p>
313
<font size="-2"><i>This document was automatically generated
314
on Sun Oct 19 17:10:22 2003 by
315
<a href="http://happydoc.sourceforge.net">HappyDoc</a> version
b'\\ No newline at end of file'