File: depth.sh

package info (click to toggle)
ctioga2 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,524 kB
  • sloc: ruby: 17,592; sh: 720; lisp: 88; makefile: 27
file content (22 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# draw.sh: tests for drawing commands
# Copyright 2010 by Vincent Fourmond 
# This file is provided as an example of how to use ctioga2. As such,
# you can do whatever you wish with this file.

# Include the definition of ct
. ./test-include.sh

$ct --setup-grid 1x2 \
    --inset grid:0,0 -t "Lines that spawn several insets" \
    'sin(x)' \
    --next-inset grid:0,1 \
    'cos(x)' \
    --draw-line -6,0 8,4 /color Purple \
    --draw-line -6,0.5 8,4.5 /color Blue /clipped=false

$ct -t "Playing with depth" \
    --legend-inside tc \
    --background-grid Gray /style=Dots \
    'x**2' /depth=95 /legend="Behind background" \
    'sin(x)' /depth=5 /legend="Above ticks"