File: error-bars.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 924 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
# error-bars.sh: error bars and others
# Copyright 2014 by Vincent Fourmond
# 
# You can do whatever you want with this file, including removing the
# copyright notice and this text.

. ./test-include.sh

# First is not a figure in itself, just a test of the ctable-like
# facility of ctioga2.

$ct --math-samples 50 -L 't:t**2/10:sin(t**20)' -P /save=error-bars.dat

$ct --text --line-style no --marker auto \
    error-bars.dat@'$1:$2:yerr=$3' /legend 'Y error bars' \
    error-bars.dat@'$1:$2+3:xerr=$3' /legend 'X error bars' \
    error-bars.dat@'$1:$2-3:$3:yerr=$3' /where 'z > 0.1' /legend 'With selection' \
    error-bars.dat@'$1:$2-6:xerr=$3:$3**2:yerr=$3' /where 'z < 0.5' /legend 'Second With selection'

$ct --text --line-style no --marker auto \
    error-bars.dat@'$1:$2:yerr=$3' /error-bar-color Purple /legend 'Purple' \
    error-bars.dat@'$1:$2+3:xerr=$3' /error-bar-line-width 0.2  /legend 'Very thin'