File: test_taylor.tcl

package info (click to toggle)
tklib 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,156 kB
  • sloc: tcl: 105,088; sh: 2,573; ansic: 792; pascal: 359; makefile: 69; sed: 53; exp: 21
file content (28 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/bin/env tclsh
# -*- tcl -*-

# test_taylor.tcl --
#     Test the procedures for drawing a Taylor diagram
#
#     See: https://en.wikipedia.org/wiki/Taylor_diagram for a description
#
#     Note:
#     There is a small issue with the margins still to be solved. Use a
#     white background for the canvas to make this invisible.
#
package require Tcl
package require Tk
package require Plotchart
namespace import Plotchart::*

pack [canvas .c]

::Plotchart::plotconfig taylordiagram reference color lime

set p [::Plotchart::createTaylorDiagram .c {10 2.5} -reference 5.4]

$p title "Example of a Taylor diagram"

$p dataconfig data -symbol dot -color blue
$p plot data 4.0 0.9
$p plot data 5.0 0.8