File: plotdemos14.tcl

package info (click to toggle)
tklib 0.6-1%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 16,112 kB
  • ctags: 4,008
  • sloc: tcl: 65,204; sh: 6,870; ansic: 792; pascal: 359; makefile: 73; exp: 21; sed: 16
file content (31 lines) | stat: -rwxr-xr-x 905 bytes parent folder | download | duplicates (3)
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
29
30
31
# plotdemos14.tcl --
#     Test target diagrams
#
#     This type of diagrams is used when comparing a numerical model with
#     measurements to determine the goodness-of-fit.
#
#     Reference:
#     Jason K. Joliff et al.
#         Summary diagrams for coupled hydrodynamic-ecosystem model skill assessment
#         Journal of Marine Systems 76 (2009) 64-82
#         DOI: 10.1016/j.jmarsys.2008.05.014
#
source ../../plotchart.tcl
package require Plotchart


#
# Target diagram
#
pack [canvas .c1 -bg white]

set p [::Plotchart::createTargetDiagram .c1 {0.5 0.7}]

#
# Draw a symbol - arbitrary data
#
$p dataconfig plus   -symbol plus   -colour red
$p dataconfig circle -symbol circle -colour red
#       Model results             Measurements to compare them with
$p plot plus   {1.0  4.0  5.0  2.0  2.4} {1.1  3.0  4.5  2.2  2.3}
$p plot circle {1.2  4.2  3.0  2.0  2.3} {1.1  3.0  4.5  2.2  2.3}