Tk Library Source Code

Check-in [8a746ea2e2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add example for performance profiles
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8a746ea2e204693a92d9e1cf0cdc8afa07c3e3e8
User & Date: arjenmarkus 2010-06-21 09:03:11
Context
2010-06-21
18:42
Restored my June 6 changes killed by Arjen's last commit. check-in: e71a867967 user: andreas_kupries tags: trunk
09:03
Add example for performance profiles check-in: 8a746ea2e2 user: arjenmarkus tags: trunk
09:02
Added three plot types (mostly specialised) - Plotchart version now 1.9.0 check-in: 318da1b9bc user: arjenmarkus tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added examples/plotchart/plotdemos16.tcl.















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
32
33
34
35
36
37
38
39
# plotdemos16.tcl --
#     Test performance profiles
#
#     This type of diagrams is used when comparing a set of numerical methods
#     for their performance on a set of solved problems. For the performance
#     measure: the lower the value the better.
#
#     Reference:
#     Desmond Higham and Nicholas Higham
#         Matlab Guide
#         SIAM, 2005, Philadephia
#
#
source ../../plotchart.tcl
package require Plotchart


#
# Performance profile
#
pack [canvas .c1 -bg white]

set p [::Plotchart::createPerformanceProfile .c1 5.0]

#
# Data copied from Higham and Higham
#
$p dataconfig ode23  -symbol circle -colour red   -type both
$p dataconfig ode45  -symbol plus   -colour blue  -type both
$p dataconfig ode113 -symbol cross  -colour green -type both

#       Model results             Measurements to compare them with
$p plot {ode23  {1.26e-2 2.41e-1 3.74e-2 3.37e0 1.44e-1 5.06e-1}
         ode45  {6.20e-3 1.53e-1 5.00e-2 6.45e0 1.56e-1 1.07e0}
         ode113 {1.56e-2 1.97e-1 6.68e-2 7.86e0 3.76e-2 1.50e0}}

$p legend ode23  ode23
$p legend ode45  ode45
$p legend ode113 ode113