~ubuntu-branches/debian/stretch/gnuplot/stretch

« back to all changes in this revision

Viewing changes to debian/tests/fillstyle

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-08-01 19:48:33 UTC
  • Revision ID: package-import@ubuntu.com-20140801194833-xm9xiemg7q7jd890
Tags: 4.6.5-10
* [684bb08] Depend on the same version of gnuplot-data as a source-version.
* [2e069b9] Fix package name in autopkgtest.
* [6aae61e] Simplify and update autotest. (Closes: #756156)
* [dfdd105] Provide -x11 by -qt. (Closes: #756163)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# autopkgtest check
3
 
# (C) 2014 Anton Gladky
4
 
 
5
 
set -e
6
 
 
7
 
WORKDIR=$(mktemp -d)
8
 
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
9
 
cd $WORKDIR
10
 
 
11
 
cat <<EOF > fillstyle.dem
12
 
#
13
 
#
14
 
# E A Merritt <merritt@u.washington.edu>          24-Sep-2002
15
 
#
16
 
# Demo for revised fillstyle code selected by 
17
 
# ./configure --enable-filledboxes --enable-relative-boxwidth
18
 
#
19
 
reset
20
 
set terminal postscript eps color 
21
 
set samples 25
22
 
unset xtics
23
 
unset ytics
24
 
set yrange [0:120]
25
 
 
26
 
set title "A demonstration of boxes with default properties"
27
 
plot [-10:10] 100/(1.0+x*x) title 'distribution' with boxes
28
 
 
29
 
pause -1 "Now draw the boxes with solid fill"
30
 
 
31
 
set title "A demonstration of boxes with style fill solid 1.0"
32
 
set style fill solid 1.0
33
 
replot
34
 
 
35
 
pause -1 "Now draw the boxes with a black border"
36
 
 
37
 
set title "A demonstration of boxes with style fill solid border -1"
38
 
set style fill solid border -1
39
 
replot
40
 
 
41
 
pause -1 "Now make the boxes a little less wide"
42
 
 
43
 
set title "Filled boxes of reduced width"
44
 
set boxwidth 0.5 
45
 
replot
46
 
 
47
 
pause -1 "And now let's try a different fill density"
48
 
 
49
 
set title "Filled boxes at 50% fill density"
50
 
set style fill solid 0.25 border
51
 
replot
52
 
 
53
 
pause -1 "Now draw the boxes with no border"
54
 
 
55
 
set title "A demonstration of boxes with style fill solid 0.25 noborder"
56
 
set style fill solid 0.25 noborder
57
 
replot
58
 
 
59
 
pause -1 "Or maybe a pattern fill, instead?"
60
 
 
61
 
set title "A demonstration of boxes in mono with style fill pattern"
62
 
set samples 11
63
 
set boxwidth 0.5 
64
 
set style fill pattern border
65
 
plot [-2.5:4.5] 100/(1.0+x*x) title 'pattern 0' with boxes lt -1, \
66
 
                 80/(1.0+x*x) title 'pattern 1' with boxes lt -1, \
67
 
                 40/(1.0+x*x) title 'pattern 2' with boxes lt -1, \
68
 
                 20/(1.0+x*x) title 'pattern 3' with boxes lt -1
69
 
 
70
 
pause -1 "Finished this demo"
71
 
 
72
 
reset
73
 
 
74
 
EOF
75
 
 
76
 
 
77
 
gnuplot < fillstyle.dem
78
 
 
79
 
echo "run: OK"