~ubuntu-branches/ubuntu/wily/ctioga2/wily

« back to all changes in this revision

Viewing changes to tests/draw.sh

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-07-08 20:58:17 UTC
  • mfrom: (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130708205817-cephnc6etndyxrrp
Tags: 0.4-2
* Upload to unstable
* Already conforms to newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
$ct -t 'Text drawing' -r 10cmx10cm \
10
10
    'sin(x)' --draw-text 0,0 'center plus baseline' /alignment baseline \
11
11
    /color BrickRed /scale 1.2 \
12
 
    --draw-line -6,0 6,0 /color Green /line_style Dots \
13
 
    --draw-line 0,-1 0,1 /color Blue /line_style Dashes \
 
12
    --draw-line -6,0 6,0 /color Green /style Dots \
 
13
    --draw-line 0,-1 0,1 /color Blue /style Dashes \
14
14
    --draw-text 0,-0.3 'left plus bottom' /justification left \
15
15
    /color Orange /scale 1.2  /alignment bottom \
16
 
    --draw-line -6,-0.3 6,-0.3 /color Green /line_style Dots 
17
 
 
 
16
    --draw-line -6,-0.3 6,-0.3 /color Green /style Dots 
 
17
 
 
18
 
 
19
 
 
20
$ct -t 'Boxes' -r 10cmx10cm \
 
21
    'sin(x)' \
 
22
    --draw-box -2,0.2 2,-0.2 /color=Blue /width=2 \
 
23
    --draw-box -5,0.8 -3,-0.4 /fill-color=Pink /color=Black \
 
24
    --draw-box 3,0.8 7,0 /fill-color=Pink /fill-transparency=0.7
 
25
 
 
26
$ct -t 'Styled lines and text' -r 10cmx10cm --math-xrange -3:3 \
 
27
    'sin(x)' \
 
28
    --draw-line -2,0.2 2,-0.2 /color=Blue /width=2 \
 
29
    --define-line-style base /style=Dots \
 
30
    --define-line-style line2 /width=1 \
 
31
    --draw-line 2,0.2 -2,-0.2 /color=Red /width=2 \
 
32
    --draw-line 2,-0.2 -2,-0.2 /color=Green /base-style=line2 \
 
33
    --draw-line 2.5,-0.4 2.5,0.5 /color=Purple /line_width=3 /line_style=Solid \
 
34
    --draw-text 0,0 'style changes apply to the whole graph' \
 
35
    --define-text-style base /scale=1.6 /color=Green \
 
36
    --define-text-style text1 /color='Red!20' \
 
37
    --draw-text 0,0.5 'with default style' \
 
38
    --draw-text 0,-0.5 'with text1 style' /base-style=text1
 
39
    
 
40
 
 
41
$ct -t 'Styled markers' -r 10cmx10cm --math-xrange -3:3 \
 
42
    'sin(x)' \
 
43
    --define-marker-style base /color=Red \
 
44
    --define-marker-style marker1 /vertical_scale=2 \
 
45
    --define-marker-style marker-string /horizontal_scale=2 \
 
46
    --draw-marker '0,0' TriangleUp \
 
47
    --draw-marker '1,0' TriangleUp /base-style=marker1 \
 
48
    --draw-string-marker '0,0.5' TriangleUp /base-style=marker-string \
 
49
    --draw-string-marker '0,-0.5' TriangleUp /base-style=marker-string \
 
50
    /vertical_scale=0.5 /color=Green \
 
51
    --draw-string-marker '0,-0.2' TriangleUp /base-style=marker-string \
 
52
    /horizontal_scale=1 /color=Blue