~ubuntu-branches/ubuntu/utopic/ctioga2/utopic

« back to all changes in this revision

Viewing changes to tests/histograms.sh

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-12-27 21:04:22 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131227210422-a3f0c7alorq6lwq2
Tags: 0.8-1
* New upstream release
* Updated URLs and debian/watch to follow its new location
* Already conforms to standards 3.9.5
* Finally updated VCS URLS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# grid.sh: demonstration of the new grid layout
 
2
# Copyright 2010 by Vincent Fourmond
 
3
 
4
# This file is provided as an example of how to use ctioga2. As such,
 
5
# you can do whatever you wish with this file.
 
6
 
 
7
# Include the definition of ct
 
8
. ./test-include.sh
 
9
 
 
10
 
 
11
$ct --margin 0.03 --math /samples=20 -t 'Two histograms' \
 
12
    --histogram 'x' /fill 0 /fill-color='Red!10' \
 
13
    ' -x' /fill-color='Green!20' /fill 0 \
 
14
 
 
15
$ct --margin 0.03 --math /samples=20 -t 'Using fill styles' \
 
16
    --histogram 'x+30' /fill top /fill-color='Red!10' \
 
17
    ' -x + 20' /fill-color='Green!20' /fill 23 \
 
18
 
 
19
$ct --margin 0.03 --math /samples=20 -t 'Mixing normal curves and histograms' \
 
20
    --histogram 'x' /fill 0 /fill-color='Red!10' \
 
21
    ' -x' /fill-color='Green!20' /fill 0 \
 
22
    '0.1 * x**2' /fill-color='Blue!20' /fill 0 \
 
23
    --xy-plot '0.1*x**2'
 
24
 
 
25
$ct --margin 0.03 --math /samples=20 /xrange=0:1 -t 'Cumulative histograms' \
 
26
    --histogram /cumulative=0 /gap 1mm 'x' /fill 0 /fill-color='Red!10' \
 
27
    '1-x' /fill 0 /fill-color='Green!10'
 
28
 
 
29
$ct --margin 0.03 --math /samples=20 /xrange=0:1 -t 'Cumulative histograms, mixed with usual ones' \
 
30
    --histogram /cumulative=0 'x' /fill 0 /fill-color='Red!10' \
 
31
    '1-x' /fill 0 /fill-color='Green!10' \
 
32
    --histogram /cumulative=no \
 
33
    '2*x' /fill 0 /fill-color='Blue!10'
 
34
 
 
35
$ct --margin 0.03 --math /samples=20 /xrange=0:1 -t 'Cumulative histograms' \
 
36
    --fill-color-set 'default!10' --fill 0\
 
37
    --histogram /cumulative=next /gap 1mm \
 
38
    'x' '1-x' \
 
39
    --histogram /cumulative=next \
 
40
    '0.5*x' 'x' --name a