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
|
#!/bin/sh
# demos for ACE/gr
#
# define the location
#
if test -x ../src/xmgr
then
ACEGR=../src/xmgr
else
if test -x ../bin/xmgr
then
ACEGR=../bin/xmgr
else
ACEGR=xmgr
fi
fi
# use the newest docs
if test -r ../doc/xmgr.html
then
GR_HOME=`pwd`/..
export GR_HOME
fi
# command line parameters
$ACEGR -usage
sleep 3
#
# don't ask stupid questions :)
#
ACEGR="$ACEGR -noask"
#
# explain the row of single character buttons and a few other things
$ACEGR explain.par
#
# display the various axes available
$ACEGR -p axes.par
#
# display the symbols and line styles
$ACEGR symslines.dat
#
# display more symbols
$ACEGR moresyms.dat
#
# display various fill styles
$ACEGR fills.dat
#
# some graph stuff and ticks
$ACEGR -p graphs.par
#
# some graph stuff and ticks
$ACEGR props.gr
#
# demonstration of many graphs
$ACEGR -maxgraph 36 manygraphs.d
#
# some graph stuff and ticks
$ACEGR brw.dat -p regions.par
#
# test of a graph inset
$ACEGR tinset.d
#
# some time and date formats
$ACEGR times.dat
#
# some more tick label formats
$ACEGR -p tforms.par
#
# some more tick label formats
$ACEGR au.d
#
# display fonts and font mappings
$ACEGR -p tfonts.par
#
# example of world stack
$ACEGR tstack.dat
#
# a graph with a parameter file
$ACEGR -p test1.par -a xy test.dat
#
# a graph with a parameter file in reverse video
$ACEGR -rvideo -p test1.par -a xy test.dat
#
$ACEGR test2.d
#
# multiple graphs with a parameter file
$ACEGR mlo.dat -graph 1 brw.dat -p co2.par
#
# multiple graphs created with arrange feature
# $ACEGR co2.all0.dat -graph 1 1.dat -graph 2 2.dat -graph 3 3.dat -graph 4 4.dat -p co2-3.par
$ACEGR co2.all
#
# a graph with alternate axes
$ACEGR -p altaxis.par test.dat -a xy
#
# a graph with error bars
$ACEGR terr.d
#
# another graph with error bars
$ACEGR terr2.d
#
# a graph with XY RADIUS format
$ACEGR txyr.dat
#
# a graph with hilo data
$ACEGR hilo.dat
#
# log plots
$ACEGR -p logtest.par log.d -graph 1 log.d
#
# more log plots
$ACEGR tlog.demo
#
# non-linear curve fitting
$ACEGR logistic.d
#
# bar charts
#
# display all types of bar graphs
$ACEGR bars.d
#
# a bar graph demonstrating specified ticks and tick labels
$ACEGR bar.d
#
# a bar graph demonstrating specified ticks and tick labels
$ACEGR bar2.d
#
# a bar graph demonstrating patterns
$ACEGR tbar3.dat
#
# a stacked bar graph
$ACEGR stackedb.d
#
# some interesting stuff
$ACEGR -arrange 2 2 -b test.com
#
# a slideshow demo
$ACEGR -pipe < slideshow.d
#
# Test the -pipe option
$ACEGR -pipe < tpipe.d
#
# need a program
# modified from previous versions, a thank you goes to Bruce Barnett
# this modification allows others without write permission
# to run the demos.
#
echo ""
if test ! -f tmc
then
echo ""
echo "Compiling a short program to test the -pipe option"
echo "Executing 'cc tmc.c -o tmc -lm'"
cc tmc.c -o tmc -lm
echo "Done compilation"
echo ""
fi
#
# a graph with the -pipe option
echo "Testing -pipe option, executing './tmc | $ACEGR -pipe' "
./tmc | $ACEGR -pipe
rm -f tmc.o tmc
|