Changeset 21
- Timestamp:
- Dec 13, 2006 11:36:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/utils/bt5/bt5plot/bt5plot
r20 r21 184 184 } 185 185 } 186 186 187 proc changeLogLinY {} { 188 global graph 189 global loglinY 190 191 $graph axis configure y -logscale $loglinY 192 } 193 194 proc changeLogLinX {} { 195 global graph 196 global loglinX 197 198 $graph axis configure x -logscale $loglinX 199 } 200 187 201 proc LoadTree { tree parentNode dir } { 188 202 cd $dir … … 204 218 if {$dir ne ""} { 205 219 EmptyTree .tree 206 LoadTree .tree 0 $dir220 catch { LoadTree .tree 0 $dir } result 207 221 cd $dir 208 222 } … … 284 298 #Plot controls 285 299 set pcf [frame .filter.pc] 300 #Clear plot button 286 301 button $pcf.filterReset -text "Clear Plot" -command {resetGraph} 287 radiobutton $pcf.c -text "Counts" -variable plotType -value "count" -command {foreach elem [$graph element show] { changePlotType $elem }} 288 radiobutton $pcf.cr -text "Count Rate" -variable plotType -value "countrate" -command {foreach elem [$graph element show] { changePlotType $elem }} 289 radiobutton $pcf.t -text "Trans" -variable plotType -value "trans" -command {foreach elem [$graph element show] { changePlotType $elem }} 290 radiobutton $pcf.m -text "Mon" -variable plotType -value "mon" -command {foreach elem [$graph element show] { changePlotType $elem }} 291 $pcf.c select 302 303 #Frame for radiobutton set to control plot type 304 set ptf [frame .filter.pc.pt -borderwidth 1 -relief raised] 305 radiobutton $ptf.c -text "Counts" -variable plotType -value "count" -command {foreach elem [$graph element show] { changePlotType $elem }} 306 radiobutton $ptf.cr -text "Count Rate" -variable plotType -value "countrate" -command {foreach elem [$graph element show] { changePlotType $elem }} 307 radiobutton $ptf.t -text "Trans" -variable plotType -value "trans" -command {foreach elem [$graph element show] { changePlotType $elem }} 308 radiobutton $ptf.m -text "Mon" -variable plotType -value "mon" -command {foreach elem [$graph element show] { changePlotType $elem }} 309 $ptf.c select 310 pack $ptf.m -side right 311 pack $ptf.t -side right 312 pack $ptf.cr -side right 313 pack $ptf.c -side right 314 315 #Frame for y-axis log/lin choice 316 set logfy [frame .filter.pc.logy -borderwidth 1 -relief raised] 317 #Log/lin radiobutton set 318 radiobutton $logfy.log -text "Log Y" -variable loglinY -value "yes" -command { changeLogLinY } 319 radiobutton $logfy.lin -text "Lin Y" -variable loglinY -value "no" -command { changeLogLinY } 320 $logfy.lin select 321 pack $logfy.log -side right 322 pack $logfy.lin -side right 323 324 #Frame for y-axis log/lin choice 325 set logfx [frame .filter.pc.logx -borderwidth 1 -relief raised] 326 #Log/lin radiobutton set 327 radiobutton $logfx.log -text "Log X" -variable loglinX -value "yes" -command { changeLogLinX } 328 radiobutton $logfx.lin -text "Lin X" -variable loglinX -value "no" -command { changeLogLinX } 329 $logfx.lin select 330 pack $logfx.log -side right 331 pack $logfx.lin -side right 332 292 333 pack $pcf.filterReset -side right -padx 25 293 pack $pcf.m -side right 294 pack $pcf.t -side right 295 pack $pcf.cr -side right 296 pack $pcf.c -side right 334 pack $logfy -side right 335 pack $logfx -side right 336 pack $ptf -side right 297 337 pack $pcf -side right 298 338
Note: See TracChangeset
for help on using the changeset viewer.