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
16
--draw-line -6,-0.3 6,-0.3 /color Green /style Dots
20
$ct -t 'Boxes' -r 10cmx10cm \
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
26
$ct -t 'Styled lines and text' -r 10cmx10cm --math-xrange -3:3 \
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
41
$ct -t 'Styled markers' -r 10cmx10cm --math-xrange -3:3 \
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