~uhh-ssd/+junk/humidity_readout

« back to all changes in this revision

Viewing changes to plplot/plplot-5.9.9/examples/tcl/README.tcldemos

  • Committer: Joachim Erfle
  • Date: 2013-07-24 13:53:41 UTC
  • Revision ID: joachim.erfle@desy.de-20130724135341-1qojpp701zsn009p
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Running the Tcl Demos.
 
2
 
 
3
PLplot doesn't need to be installed to run these demos.
 
4
However, different commands might be needed to run the demos when PLplot
 
5
is installed or not; in these cases, the first command must be used for
 
6
the installed situation, while the second, separeted by a '|', is for the
 
7
uninstalled situation.
 
8
 
 
9
To run individual examples, run the x?? script corresponding to the x??.tcl
 
10
example, where ?? is 01 through 19.  To find out all the possible command-line
 
11
options run pltcl -h (every x?? script runs pltcl).
 
12
For the uninstalled situation, do PATH=../../utils:$PATH x??
 
13
 
 
14
To run the plot.tcl demo follow the directions in that file to run it
 
15
under pltcl with the various standard devices.
 
16
 
 
17
To run the plgrid.tcl demo follow the directions in that file to run it
 
18
under pltcl with the various standard devices.
 
19
 
 
20
tcldemos.tcl runs all 19 examples.
 
21
 
 
22
There are two ways to run tcldemos.tcl:
 
23
 
 
24
(1) 
 
25
pltcl | ../../utils/pltcl
 
26
plinit
 
27
source tcldemos.tcl
 
28
1
 
29
2
 
30
....
 
31
 
 
32
Note the pltcl command has normal PLplot command-line options (run pltcl -h
 
33
to find out what they are).
 
34
 
 
35
(2) Note, fill in $prefix below with whatever you configured for the install
 
36
prefix (/usr/local/plplot or whatever) and $VERSION with the plplot VERSION 
 
37
you are running at this time (5.2.0 or whatever).
 
38
 
 
39
tclsh
 
40
lappend auto_path $prefix/share/plplot$VERSION | ../../bindings/tcl
 
41
package require Pltcl
 
42
plinit
 
43
source tcldemos.tcl
 
44
1
 
45
2
 
46
....
 
47
 
 
48
To find out more about the tclsh command (which comes as part of the tcl
 
49
package) use man tclsh.
 
50
 
 
51
Both the pltcl and tclsh methods execute the various x??.tcl examples
 
52
corresponding to the numbers specified by the user. A few of the x??.tcl
 
53
examples will return the message that they have not been implemented, but
 
54
the rest should work smoothly without problems.