close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
Line | |
---|
1 | package require Toltcl |
---|
2 | |
---|
3 | lappend auto_path /usr/local/src/TCL/rbctoolkit/trunk/rbc/build8.5 |
---|
4 | package require rbc |
---|
5 | |
---|
6 | proc Tol_HciWriter { msg } { |
---|
7 | puts [ string trim $msg ] |
---|
8 | } |
---|
9 | |
---|
10 | tol::initkernel |
---|
11 | tol::initlibrary |
---|
12 | |
---|
13 | set cwd [ file normalize [ file dir [ info script ] ] ] |
---|
14 | |
---|
15 | rbc::graph .gr |
---|
16 | |
---|
17 | tol::include [ file join $cwd "test.tol" ] |
---|
18 | |
---|
19 | pack .gr -fill both -expand yes |
---|
20 | |
---|
21 | tol::seriegrp create s3 { Serie s3 } |
---|
22 | |
---|
23 | set j 0 |
---|
24 | set t0 [ time { |
---|
25 | foreach vec_data [ s3 serie 0 data ] { |
---|
26 | .gr line create l$j -xdata [ lindex $vec_data 0 ] \ |
---|
27 | -ydata [ lindex $vec_data 1 ] |
---|
28 | if { $j } { |
---|
29 | .gr line configure l$j -label "" |
---|
30 | } else { |
---|
31 | .gr line configure l0 -label [ s3 serie 0 name ] |
---|
32 | } |
---|
33 | incr j |
---|
34 | } |
---|
35 | } ] |
---|
36 | |
---|
37 | puts "la generacion del grafico tardo [ expr [ lindex $t0 0 ] * 1.0e-6 ] s" |
---|
Download in other formats: