~ubuntu-branches/ubuntu/oneiric/ctioga2/oneiric

« back to all changes in this revision

Viewing changes to tests/draw.sh

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-01-24 21:36:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110124213606-9ettx0ugl83z0bzp
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# draw.sh: tests for drawing commands
 
2
# Copyright 2010 by Vincent Fourmond 
 
3
# This file is provided as an example of how to use ctioga2. As such,
 
4
# you can do whatever you wish with this file.
 
5
 
 
6
# Include the definition of ct
 
7
. ./test-include.sh
 
8
 
 
9
$ct -t 'Text drawing' -r 10cmx10cm \
 
10
    'sin(x)' --draw-text 0,0 'center plus baseline' /alignment baseline \
 
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 \
 
14
    --draw-text 0,-0.3 'left plus bottom' /justification left \
 
15
    /color Orange /scale 1.2  /alignment bottom \
 
16
    --draw-line -6,-0.3 6,-0.3 /color Green /line_style Dots 
 
17