~ubuntu-branches/ubuntu/karmic/grace/karmic

« back to all changes in this revision

Viewing changes to examples/dotest

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-19 14:19:58 UTC
  • Revision ID: james.westby@ubuntu.com-20020319141958-5gxna6vo1ek3zjml
Tags: upstream-5.1.7
ImportĀ upstreamĀ versionĀ 5.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# demos for Grace
 
3
#
 
4
 
 
5
export GRACE_HOME
 
6
 
 
7
# define the location
 
8
#
 
9
if test -x ../src/xmgrace
 
10
then
 
11
        GRACE=../src/xmgrace
 
12
        GRACE_HOME=`pwd`/..
 
13
else
 
14
if test -x ../bin/xmgrace
 
15
then
 
16
        GRACE=../bin/xmgrace
 
17
        GRACE_HOME=`pwd`/..
 
18
else
 
19
        GRACE=xmgrace
 
20
fi
 
21
fi
 
22
 
 
23
# don't ask stupid questions :)
 
24
#
 
25
GRACE="$GRACE -noask"
 
26
#
 
27
 
 
28
# explain the row of single character buttons and a few other things
 
29
$GRACE explain.agr 
 
30
#
 
31
# display the various axes available
 
32
$GRACE axes.agr 
 
33
#
 
34
# display the symbols and line styles
 
35
$GRACE symslines.agr 
 
36
#
 
37
# display various fill styles
 
38
$GRACE fills.agr 
 
39
#
 
40
# some graph stuff and ticks
 
41
$GRACE -p graphs.par 
 
42
#
 
43
# some graph stuff and ticks
 
44
$GRACE props.agr 
 
45
#
 
46
# demonstration of many graphs
 
47
$GRACE manygraphs.agr
 
48
#
 
49
# some graph stuff and ticks
 
50
$GRACE brw.dat -p regions.par 
 
51
#
 
52
# test of a graph inset
 
53
$GRACE tinset.agr
 
54
#
 
55
# some time and date formats
 
56
$GRACE times.agr 
 
57
#
 
58
# some more tick label formats
 
59
$GRACE -p tforms.par 
 
60
#
 
61
# Australia map
 
62
$GRACE au.agr 
 
63
#
 
64
# log plots
 
65
$GRACE -autoscale none -p logtest.par log.dat -graph 1 log.dat 
 
66
#
 
67
# more log plots
 
68
$GRACE tlog.agr 
 
69
#
 
70
# a log2 example
 
71
$GRACE log2.agr 
 
72
#
 
73
# a logit scale sample
 
74
$GRACE logit.agr 
 
75
#
 
76
# a reciprocal scale sample
 
77
$GRACE reciprocal.agr 
 
78
#
 
79
# display fonts and font mappings
 
80
$GRACE tfonts.agr 
 
81
#
 
82
# text transforms
 
83
$GRACE txttrans.agr 
 
84
#
 
85
# advaned typesetting
 
86
$GRACE typeset.agr
 
87
#
 
88
# example of world stack
 
89
$GRACE tstack.agr 
 
90
#
 
91
# a graph with a parameter file
 
92
$GRACE -p test1.par -autoscale xy test.dat 
 
93
#
 
94
# a graph with a parameter file in reverse video
 
95
$GRACE -rvideo -p test1.par -autoscale xy test.dat 
 
96
#
 
97
$GRACE test2.agr 
 
98
#
 
99
# explanation of arrow shape parameters
 
100
$GRACE arrows.agr 
 
101
#
 
102
# multiple graphs with a parameter file
 
103
$GRACE mlo.dat -graph 1 brw.dat -p co2.par 
 
104
#
 
105
# multiple graphs created with arrange feature
 
106
$GRACE co2.agr 
 
107
#
 
108
# a nice sample
 
109
$GRACE spectrum.agr 
 
110
#
 
111
# a graph with alternate axes
 
112
$GRACE -p altaxis.par test.dat -autoscale xy 
 
113
#
 
114
# a graph with error bars
 
115
$GRACE terr.agr
 
116
#
 
117
# a fixed graph with XY RADIUS format
 
118
$GRACE txyr.agr 
 
119
#
 
120
# string annotations
 
121
$GRACE motif.agr 
 
122
#
 
123
# a graph with an XYZ set
 
124
$GRACE xyz.agr 
 
125
#
 
126
# a graph with HILO data
 
127
$GRACE hilo.agr 
 
128
#
 
129
# a graph with BOXPLOT data
 
130
$GRACE boxplot.agr 
 
131
#
 
132
# polar plots
 
133
$GRACE polar.agr
 
134
#
 
135
# bar charts
 
136
#
 
137
# a bar graph demonstrating specified ticks and tick labels
 
138
$GRACE bar.agr
 
139
#
 
140
# a stacked bar chart
 
141
$GRACE stackedb.agr
 
142
#
 
143
# a bar chart with error bars
 
144
$GRACE chartebar.agr
 
145
#
 
146
# display all types of XY charts
 
147
$GRACE charts.agr
 
148
#
 
149
# pie charts
 
150
$GRACE pie.agr
 
151
#
 
152
# vector map
 
153
$GRACE vmap.agr
 
154
#
 
155
# a bubble plot
 
156
$GRACE xysize.agr
 
157
#
 
158
# an xycolor map
 
159
$GRACE xycolor.agr
 
160
#
 
161
# non-linear curve fitting
 
162
$GRACE logistic.agr
 
163
#
 
164
# some interesting stuff
 
165
$GRACE -b test.com
 
166
#
 
167
# need a program
 
168
# modified from previous versions, a thank you goes to Bruce Barnett
 
169
# this modification allows others without write permission
 
170
# to run the demos.
 
171
#
 
172
echo ""
 
173
if test ! -f tmc
 
174
then
 
175
      echo ""
 
176
      echo "Compiling a short program to test the -pipe option"
 
177
      echo "Executing 'cc tmc.c -o tmc -lm'"
 
178
      cc tmc.c -o tmc -lm
 
179
      echo "Done compilation"
 
180
      echo ""
 
181
fi
 
182
 
 
183
#
 
184
# a graph with the -pipe option
 
185
echo "Testing -pipe option, executing './tmc | $GRACE -pipe' "
 
186
./tmc | $GRACE -pipe 
 
187
 
 
188
rm -f tmc.o tmc
 
189