1
# grid.sh: demonstration of the new grid layout
2
# Copyright 2010 by Vincent Fourmond
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.
7
# Include the definition of ct
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 \
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 \
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 \
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'
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'
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 \
39
--histogram /cumulative=next \