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

« back to all changes in this revision

Viewing changes to tests/legends.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
# legends.sh: various aspects of legends
 
2
# Copyright 2009 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 'Basic legends' -r 10cmx10cm \
 
10
    -l '$\sin x$' 'sin(x)' 'cos(x)' /legend='$\cos x$'
 
11
 
 
12
$ct -t 'Counting the legends inside the page size' \
 
13
    -r 10cmx10cm /count-legend=true \
 
14
    -l '$\sin x$' 'sin(x)' 'cos(x)' /legend='$\cos x$'
 
15
 
 
16
$ct -t 'Legend lines' -r 10cmx10cm \
 
17
    -l '$\sin x$' 'sin(x)' \
 
18
    --legend-line 'A line by itself' /color=Blue \
 
19
    'cos(x)' /legend='$\cos x$'