Changeset 209
- Timestamp:
- Nov 21, 2007 4:13:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/utils/bt5/bt5plot/bt5plot
r208 r209 34 34 MCQhMBEDbQUTMB0YKjAUDgYHDxUwJxYxG5FRmRpMFx8lRyMdmzFBADs= 35 35 } ] 36 37 set plotcolors [list darkblue darkred darkgreen darkorange darkmagenta darkcyan darkgrey black blue red green orange magenta cyan grey] 38 set plotcolor 0 36 39 37 40 proc loadBT5File {fileName x c cr t m cn br bl fr fl} { … … 100 103 global tv 101 104 global images 105 global plotcolor 106 107 set plotcolor 0 102 108 103 109 foreach elem [ $graph element show] { … … 141 147 global .tree 142 148 global plotType 149 global plotcolors 150 global plotcolor 151 global useColors 143 152 144 153 set fileName [.tree label $nodeID] … … 179 188 loadBT5File $fileName $xvec $countvec $countratevec $transvec $monvec $cvec $brvec $blvec $frvec $flvec 180 189 190 191 181 192 $graph element create $filebase -symbol scross \ 182 193 -xdata $xvec \ 183 -ydata $countvec 194 -ydata $countvec 195 196 if {$useColors} { 197 set pcol [lindex $plotcolors $plotcolor] 198 199 $graph element configure $filebase -outline $pcol -color $pcol 200 201 incr plotcolor 202 if { $plotcolor >= [llength $plotcolors] } { set plotcolor 0} 203 } 184 204 185 205 switch -exact $plotType { … … 338 358 $pm add cascade -label "X-Axis" -menu $pm.xaxis 339 359 $pm add cascade -label "Y-Axis" -menu $pm.yaxis 360 $pm add cascade -label "Settings" -menu $pm.settings 340 361 #Create sub menus 341 362 set xam [menu $pm.xaxis -tearoff 0] … … 358 379 $ptm add radio -label "Front Right" -variable plotType -value "frontr" -command {foreach elem [$graph element show] { changePlotType $elem }} 359 380 381 set psm [menu $pm.settings -tearoff 0] 382 $psm add check -label "Use Colors" -variable useColors -offvalue 0 -onvalue 1 383 360 384 #Set defaults 361 385 set loglinX "no" 362 386 set loglinY "no" 363 387 set plotType "count" 388 set useColors 0 364 389 365 390 #pack menubuttons into menu
Note: See TracChangeset
for help on using the changeset viewer.