File: _Gnuplot.py_Gnuplot.html

package info (click to toggle)
python-gnuplot 1.5-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 764 kB
  • ctags: 554
  • sloc: python: 1,314; makefile: 45; sh: 22
file content (967 lines) | stat: -rw-r--r-- 28,622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
<html>

        <head>
        <title>Class: Gnuplot</title>
        </head>

        <body bgcolor="#ffffff">

        <p><i><a href="../index.html">Table of Contents</a></i></p>
        
        <table border="0" cellpadding="5" cellspacing="0" width="100%">
        <tr bgcolor="#88bbee">
            <th rowspan="2"
                valign="top"
                align="left"
                width="10%"><font color="#000000">Class: Gnuplot</font>
            </th>
            <th align="right"><font color="#000000">Gnuplot/_Gnuplot.py</font></th>
        </tr>
        <tr>
        <td>
        <dl><dt><p><strong>Interface to a gnuplot program.</strong><p>
</dt><dd><p>    A Gnuplot represents a higher-level interface to a gnuplot
    program.  It can plot 'PlotItem's, which represent each thing to
    be plotted on the current graph.  It keeps a reference to each of
    the <code>PlotItems</code> used in the current plot, so that they (and their
    associated temporary files) are not deleted prematurely.</p>

<p>    Members:</p>
<dl><dt>        <code>itemlist</code></dt><dd><p>a list of the PlotItems that are associated with
            the current plot.  These are deleted whenever a new plot
            command is issued via the <code>plot</code> method.</p>

</dd>
<dt>        <code>plotcmd</code></dt><dd><p><code>plot</code> or <code>splot</code>, depending on what was the last
            plot command.</p>

</dd></dl>

<p>    Methods:</p>
<dl><dt>        <code>__init__</code></dt><dd><p>if a filename argument is specified, the
            commands will be written to that file instead of being
            piped to gnuplot.</p>

</dd>
<dt>        <code>plot</code></dt><dd><p>clear the old plot and old <code>PlotItems</code>, then plot
            the arguments in a fresh plot command.  Arguments can be:
            a <code>PlotItem</code>, which is plotted along with its internal
            options; a string, which is plotted as a <code>Func</code>; or
            anything else, which is plotted as a <code>Data</code>.</p>

</dd>
<dt>        <code>splot</code></dt><dd><p>like <code>plot</code>, except for 3-d plots.</p>

</dd>
<dt>        <code>hardcopy</code></dt><dd><p>replot the plot to a postscript file (if
            filename argument is specified) or pipe it to the printer
            as postscript othewise.  If the option <code>color</code> is set to
            true, then output color postscript.</p>

</dd>
<dt>        <code>replot</code></dt><dd><p>replot the old items, adding any arguments as
            additional items as in the plot method.</p>

</dd>
<dt>        <code>refresh</code></dt><dd><p>issue (or reissue) the plot command using the
            current <code>PlotItems</code>.</p>

</dd>
<dt>        <code>__call__</code></dt><dd><p>pass an arbitrary string to the gnuplot process,
            followed by a newline.</p>

</dd>
<dt>        <code>xlabel</code>, <code>ylabel</code>, <code>title</code></dt><dd><p>set corresponding plot
            attribute.</p>

</dd>
<dt>        <code>interact</code></dt><dd><p>read lines from stdin and send them, one by one,
            to the gnuplot interpreter.  Basically you can type
            commands directly to the gnuplot command processor.</p>

</dd>
<dt>        <code>load</code></dt><dd><p>load a file (using the gnuplot <code>load</code> command).</p>

</dd>
<dt>        <code>save</code></dt><dd><p>save gnuplot commands to a file (using gnuplot
            <code>save</code> command) If any of the 'PlotItem's is a temporary
            file, it will be deleted at the usual time and the save
            file will be pretty useless :-).</p>

</dd>
<dt>        <code>clear</code></dt><dd><p>clear the plot window (but not the itemlist).</p>

</dd>
<dt>        <code>reset</code></dt><dd><p>reset all gnuplot settings to their defaults and
            clear the current itemlist.</p>

</dd>
<dt>        <code>set_string</code></dt><dd><p>set or unset a gnuplot option whose value is a
            string.</p>

</dd>
<dt>        <code>_clear_queue</code></dt><dd><p>clear the current <code>PlotItem</code> list.</p>

</dd>
<dt>        <code>_add_to_queue</code></dt><dd><p>add the specified items to the current
            <code>PlotItem</code> list.</p>

</dd></dl>


</dd></dl>
        
        <table border="0" cellpadding="5" cellspacing="0" width="100%%">
        
        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="Methods">Methods</a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tr><td align="LEFT" valign="TOP">
<a href="#__call__">__call__</a><br>
<a href="#__init__">__init__</a><br>
<a href="#_add_to_queue">_add_to_queue</a><br>
<a href="#_clear_queue">_clear_queue</a><br>
<a href="#clear">clear</a><br>
<a href="#hardcopy">hardcopy</a><br>
<a href="#interact">interact</a><br>
<a href="#load">load</a><br>
<a href="#plot">plot</a><br>
<a href="#refresh">refresh</a><br>
</td>
<td align="LEFT" valign="TOP">
<a href="#replot">replot</a><br>
<a href="#reset">reset</a><br>
<a href="#save">save</a><br>
<a href="#set">set</a><br>
<a href="#set_boolean">set_boolean</a><br>
<a href="#set_range">set_range</a><br>
<a href="#set_string">set_string</a><br>
<a href="#splot">splot</a><br>
<a href="#title">title</a><br>
<a href="#xlabel">xlabel</a><br>
</td>
<td align="LEFT" valign="TOP">
<a href="#ylabel">ylabel</a><br>
</td>
</tr></table>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="__call__"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">__call__&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
__call__ ( self,  s )

</pre><dl><dt><p><strong>Send a command string to gnuplot.</strong><p>
</dt><dd><p>        Send the string s as a command to gnuplot, followed by a
        newline.  All communication with the gnuplot process (except
        for inline data) is through this method.</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="__init__"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">__init__&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
__init__ (
        self,
        filename=None,
        persist=None,
        debug=0,
        )

</pre><dl><dt><p><strong>Create a Gnuplot object.</strong><p>
</dt><dd><p>        Create a <code>Gnuplot</code> object.  By default, this starts a gnuplot
        process and prepares to write commands to it.</p>

<p>        Keyword arguments:</p>
<dl><dt>          <code>filename=<string></code></dt><dd><p>if a filename is specified, the
              commands are instead written to that file (e.g., for
              later use using <code>load</code>).</p>

</dd>
<dt>          <code>persist=1</code></dt><dd><p>start gnuplot with the <code>-persist</code> option
              (which creates a new plot window for each plot command).
              (This option is not available on older versions of
              gnuplot.)</p>

</dd>
<dt>          <code>debug=1</code></dt><dd><p>echo the gnuplot commands to stderr as well as
              sending them to gnuplot.</p>

</dd></dl>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="_add_to_queue"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">_add_to_queue&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
_add_to_queue ( self,  items )

</pre><dl><dt><p><strong>Add a list of items to the itemlist (but don't plot them).</strong><p>
</dt><dd><p>        <code>items</code> is a sequence of items, each of which should be a
        <code>PlotItem</code> of some kind, a string (interpreted as a function
        string for gnuplot to evaluate), or a Numeric array (or
        something that can be converted to a Numeric array).</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="_clear_queue"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">_clear_queue&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
_clear_queue ( self )

</pre><p>Clear the <code>PlotItems</code> from the queue.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="clear"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">clear&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
clear ( self )

</pre><p>Clear the plot window (without affecting the current itemlist).</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="hardcopy"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">hardcopy&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
hardcopy (
        self,
        filename=None,
        mode=None,
        eps=None,
        enhanced=None,
        color=None,
        solid=None,
        duplexing=None,
        fontname=None,
        fontsize=None,
        )

</pre><dl><dt><p><strong>Create a hardcopy of the current plot.</strong><p>
</dt><dd><p>        Create a postscript hardcopy of the current plot to the
        default printer (if configured) or to the specified filename.</p>

<p>        Note that gnuplot remembers the postscript suboptions across
        terminal changes.  Therefore if you set, for example, color=1
        for one hardcopy then the next hardcopy will also be color
        unless you explicitly choose color=0.  Alternately you can
        force all of the options to their defaults by setting
        mode='default'.  I consider this to be a bug in gnuplot.</p>

<p>        Keyword arguments:</p>
<dl><dt>          <code>filename=<string></code></dt><dd><p>if a filename is specified, save the
              output in that file; otherwise print it immediately
              using the <code>default_lpr</code> configuration option.</p>

</dd>
<dt>          <code>mode=<string></code></dt><dd><p>set the postscript submode (<code>landscape</code>,
              <code>portrait</code>, <code>eps</code>, or <code>default</code>).  The default is
              to leave this option unspecified.</p>

</dd>
<dt>          <code>eps=<bool></code></dt><dd><p>shorthand for <code>mode="eps"</code>; asks gnuplot to
              generate encapsulated postscript.</p>

</dd>
<dt>          <code>enhanced=<bool></code></dt><dd><p>if set (the default), then generate
              enhanced postscript, which allows extra features like
              font-switching, superscripts, and subscripts in axis
              labels.  (Some old gnuplot versions do not support
              enhanced postscript; if this is the case set
              gp.GnuplotOpts.prefer_enhanced_postscript=None.)</p>

</dd>
<dt>          <code>color=<bool></code></dt><dd><p>if set, create a plot with color.  Default
              is to leave this option unchanged.</p>

</dd>
<dt>          <code>solid=<bool></code></dt><dd><p>if set, force lines to be solid (i.e., not
              dashed).</p>

</dd>
<dt>          <code>duplexing=<string></code></dt><dd><p>set duplexing option (<code>defaultplex</code>,
              <code>simplex</code>, or <code>duplex</code>).  Only request double-sided
              printing if your printer can handle it.  Actually this
              option is probably meaningless since hardcopy() can only
              print a single plot at a time.</p>

</dd>
<dt>          <code>fontname=<string></code></dt><dd><p>set the default font to <string>,
              which must be a valid postscript font.  The default is
              to leave this option unspecified.</p>

</dd>
<dt>          <code>fontsize=<double></code></dt><dd><p>set the default font size, in
              postscript points.</p>

</dd></dl>

<p>        Note that this command will return immediately even though it
        might take gnuplot a while to actually finish working.  Be
        sure to pause briefly before issuing another command that
        might cause the temporary files to be deleted.</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="interact"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">interact&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
interact ( self )

</pre><dl><dt><p><strong>Allow user to type arbitrary commands to gnuplot.</strong><p>
</dt><dd><p>        Read stdin, line by line, and send each line as a command to
        gnuplot.  End by typing C-d.</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="load"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">load&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
load ( self,  filename )

</pre><p>Load a file using gnuplot's <code>load</code> command.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="plot"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">plot&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
plot (
        self,
        *items,
        *keyw,
        )

</pre><dl><dt><p><strong>Draw a new plot.</strong><p>
</dt><dd><p>        Clear the current plot and create a new 2-d plot containing
        the specified items.  Each arguments should be of the
        following types:</p>

<dl><dt>        <code>PlotItem</code> (e.g., <code>Data</code>, <code>File</code>, <code>Func</code>)</dt><dd><p>This is the most
            flexible way to call plot because the PlotItems can
            contain suboptions.  Moreover, PlotItems can be saved to
            variables so that their lifetime is longer than one plot
            command; thus they can be replotted with minimal overhead.</p>

</dd>
<dt>        <code>string</code> (e.g., <code>sin(x)</code>)</dt><dd><p>The string is interpreted as
            <code>Func(string)</code> (a function that is computed by gnuplot).</p>

</dd>
<dt>        Anything else</dt><dd><p>The object, which should be convertible to an
            array, is passed to the <code>Data</code> constructor, and thus
            plotted as data.  If the conversion fails, an exception is
            raised.</p>

</dd></dl>

</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="refresh"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">refresh&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
refresh ( self )

</pre><dl><dt><p><strong>Refresh the plot, using the current 'PlotItem's.</strong><p>
</dt><dd><p>        Refresh the current plot by reissuing the gnuplot plot command
        corresponding to the current itemlist.</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="replot"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">replot&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
replot (
        self,
        *items,
        *keyw,
        )

</pre><dl><dt><p><strong>Replot the data, possibly adding new 'PlotItem's.</strong><p>
</dt><dd><p>        Replot the existing graph, using the items in the current
        itemlist.  If arguments are specified, they are interpreted as
        additional items to be plotted alongside the existing items on
        the same graph.  See <code>plot</code> for details.</p>


</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="reset"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">reset&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
reset ( self )

</pre><p>Reset all gnuplot settings to their defaults and clear itemlist.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="save"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">save&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
save ( self,  filename )

</pre><p>Save the current plot commands using gnuplot's <code>save</code> command.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="set"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">set&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
set ( self,  **keyw )

</pre><p>Set one or more settings at once from keyword arguments.
        The allowed settings and their treatments are determined from
        the optiontypes mapping.</p>

        
        <table border="0" cellpadding="5" cellspacing="0" width="100%%">
        
        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="Exceptions">Exceptions</a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        
<pre>
'option %s is not supported'

</pre>

        </td>
        </tr>
        </table>
        
        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="set_boolean"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">set_boolean&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
set_boolean (
        self,
        option,
        value,
        )

</pre><p>Set an on/off option.  It is assumed that the way to turn
        the option on is to type `set <option>' and to turn it off,
        `set no<option>'.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="set_range"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">set_range&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
set_range (
        self,
        option,
        value,
        )

</pre><p>Set a range option (xrange, yrange, trange, urange, etc.).
        The value can be a string (which is passed as-is, without
        quotes) or a tuple (minrange,maxrange) of numbers or string
        expressions recognized by gnuplot.  If either range is None
        then that range is passed as `*' (which means to
        autoscale).</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="set_string"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">set_string&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
set_string (
        self,
        option,
        s=None,
        )

</pre><p>Set a string option, or if s is omitted, unset the option.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="splot"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">splot&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
splot (
        self,
        *items,
        *keyw,
        )

</pre><dl><dt><p><strong>Draw a new three-dimensional plot.</strong><p>
</dt><dd><p>        Clear the current plot and create a new 3-d plot containing
        the specified items.  Arguments can be of the following types:</p>

<dl><dt>        <code>PlotItem</code> (e.g., <code>Data</code>, <code>File</code>, <code>Func</code>, <code>GridData</code> )</dt><dd><p>This
            is the most flexible way to call plot because the
            PlotItems can contain suboptions.  Moreover, PlotItems can
            be saved to variables so that their lifetime is longer
            than one plot command--thus they can be replotted with
            minimal overhead.</p>

</dd>
<dt>        <code>string</code> (e.g., <code>sin(x*y)</code>)</dt><dd><p>The string is interpreted as a
            <code>Func()</code> (a function that is computed by gnuplot).</p>

</dd>
<dt>        Anything else</dt><dd><p>The object is converted to a Data() item, and
            thus plotted as data.  Note that each data point should
            normally have at least three values associated with it
            (i.e., x, y, and z).  If the conversion fails, an
            exception is raised.</p>

</dd></dl>

</dd></dl>

        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="title"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">title&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
title ( self,  s=None )

</pre><p>Set the plot's title.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="xlabel"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">xlabel&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
xlabel ( self,  s=None )

</pre><p>Set the plot's xlabel.</p>


        <tr>
            <th bgcolor="#99ccff"
                rowspan="2"
                valign="top"
                align="left"
                width="20%"
                >
                <font color="#000000">
                  <a name="ylabel"></a>&nbsp;
                </font>
            </th>
            <th bgcolor="#99ccff"
                valign="top"
                align="left"
                >
                <font color="#000000">ylabel&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        <pre>
ylabel ( self,  s=None )

</pre><p>Set the plot's ylabel.</p>

</td></tr>
        </td>
        </tr>
        </table>
        
        </td>
        </tr>
        </table>

        <hr>

        <p><i><a href="../index.html">Table of Contents</a></i></p>

        <i>This document was automatically generated on Fri Jan 26 14:06:11 2001
        by <a href="http://happydoc.sourceforge.net">HappyDoc</a> version r0_9_2</i>

        </body>
        </html>