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

« back to all changes in this revision

Viewing changes to tests/grid.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
# grid.sh: demonstration of the new grid layout
 
2
# Copyright 2010 by Vincent Fourmond
 
3
 
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.
 
6
 
 
7
# Include the definition of ct
 
8
. ./test-include.sh
 
9
 
 
10
# Plain grid
 
11
$ct --setup-grid 2x2 --inset grid:1,0 'sin(x)' \
 
12
    --next-inset grid:0,1 'x**2'
 
13
 
 
14
# Non-uniform cell sizes
 
15
$ct --setup-grid 1,2x2,1 --inset grid:1,0 'sin(x)' \
 
16
    --next-inset grid:0,1 'x**2'
 
17
 
 
18
# Additional specification
 
19
$ct --setup-grid 1,2x2,1 --inset grid:1,0,xl=0.3 'sin(x)' \
 
20
    --next-inset grid:0,1,yt=0.7,xr=0.9 'x**2'
 
 
b'\\ No newline at end of file'