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

« back to all changes in this revision

Viewing changes to tests/xyz-maps.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
# text.sh: test for the text backend
 
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
ruby ./generate-data.rb
 
10
 
 
11
$ct -t "Neat 3d map (with crappy colors)" \
 
12
    --text --margin 0.03 --xyz-map \
 
13
    3d-data.dat@1:2:3
 
14
 
 
15
$ct -t "Neat 3d map (with nicer white to blue colors)" \
 
16
    --text --margin 0.03 --xyz-map \
 
17
    3d-data.dat@1:2:3 /color-map '#fff--#22f'
 
18
 
 
19
$ct -t "Neat 3d map, with a legend (on the right)" \
 
20
    --text --margin 0.03 --new-zaxis zvalues /location right \
 
21
    --xyz-map 3d-data.dat@1:2:3 /color-map '#fff--#22f' /zaxis zvalues \
 
22
    --label-style zvalues_label /text=machin
 
23
 
 
24
$ct -t "Neat 3d map, with a legend (on the left)" \
 
25
    --text --margin 0.03 --new-zaxis zvalues /location left \
 
26
    --xyz-map 3d-data.dat@1:2:3 /color-map '#fff--#22f' /zaxis zvalues \
 
27
    --label-style zvalues_label /text=machin \
 
28
    -y '' --left ticks 
 
29
 
 
30
$ct -t "Neat 3d map, with a legend (at the bottom)" \
 
31
    --text --margin 0.03 --new-zaxis zvalues /location bottom \
 
32
    --xyz-map 3d-data.dat@1:2:3 /color-map '#fff--#22f' /zaxis zvalues \
 
33
    --label-style zvalues_label /text=machin \
 
34
    -x '' --bottom ticks 
 
35
 
 
36
$ct --legend-inside tc /scale 1 \
 
37
    --legend-line "Neat 3d map, with a legend (at the top)" \
 
38
    --text --margin 0.03 --new-zaxis zvalues /location top \
 
39
    --xyz-map 3d-data.dat@1:2:3 /color-map '#fff--#22f' /zaxis zvalues \
 
40
    --label-style zvalues_label /text=machin
 
41