Changeset 2315 for branches/blt4
- Timestamp:
- Jul 20, 2011, 5:24:54 PM (13 years ago)
- Location:
- branches/blt4/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/bugreport.tcl
r2173 r2315 86 86 set w [winfo reqwidth .bugreport] 87 87 set h [winfo reqheight .bugreport] 88 incr h 300 88 89 set x [expr {([winfo screenwidth .bugreport]-$w)/2}] 89 90 if {$x < 0} {set x "+0"} else {set x "+$x"} -
branches/blt4/gui/scripts/xyprint.tcl
r2048 r2315 310 310 # Axis component 311 311 foreach axis [$orig axis names] { 312 if { $axis == "z" } { 313 continue 314 } 312 315 if { [$orig axis cget $axis -hide] } { 313 316 continue … … 385 388 # 386 389 foreach axis [$_clone axis names] { 390 if { $axis == "z" } { 391 continue 392 } 387 393 if { [$_clone axis cget $axis -hide] } { 388 394 continue … … 1368 1374 $itk_component(axis_menu) delete all 1369 1375 foreach axis $names { 1376 if { $axis == "z" } { 1377 continue 1378 } 1370 1379 if { ![$_clone axis cget $axis -hide] } { 1371 1380 $itk_component(axis_menu) add -text $axis -value $axis \ -
branches/blt4/gui/scripts/xyresult.tcl
r2242 r2315 292 292 set params(-width) 0 293 293 } 294 295 294 # if the color is "auto", then select a color from -autocolors 296 if { $params(-color) == "auto" || $params(-color) == "autoreset"} {295 if { $params(-color) == "auto" || $params(-color) == "autoreset" } { 297 296 if {$params(-color) == "autoreset"} { 298 297 set _autoColorI 0 299 298 } 300 set color [lindex $itk_option(-autocolors) $_autoColorI] 301 if {"" == $color} { set color black } 299 set color [lindex $itk_option(-autocolors) $_autoColorI] 300 if { "" == $color} { 301 set color black 302 } 302 303 set params(-color) $color 303 304 304 # set up for next auto color 305 305 if {[incr _autoColorI] >= [llength $itk_option(-autocolors)]} { … … 319 319 set params(-color) [Rappture::color::brightness \ 320 320 $params(-color) $params(-brightness)] 321 322 321 set bg [$itk_component(plot) cget -plotbackground] 323 322 foreach {h s v} [Rappture::color::RGBtoHSV $bg] break … … 432 431 # find the axes for this dataobj (e.g., {x y2}) 433 432 foreach {map(x) map(y)} [GetAxes $dataobj] break 434 435 433 foreach axis {x y} { 436 434 # get defaults for both linear and log scales … … 439 437 set id $map($axis)$type 440 438 foreach {min max} [$dataobj limits $axis$type] break 439 set amin [$dataobj hints ${axis}min] 440 set amax [$dataobj hints ${axis}max] 441 if { $amin != "" } { 442 set min $amin 443 } 444 if { $amax != "" } { 445 set max $amax 446 } 441 447 if {"" != $min && "" != $max} { 442 448 if {![info exists _limits($id-min)]} { … … 453 459 } 454 460 } 455 456 461 if {[$dataobj hints ${axis}scale] == "log"} { 457 462 Axis scale $map($axis) log … … 645 650 set label [$dataobj hints label] 646 651 foreach {mapx mapy} [GetAxes $dataobj] break 647 648 652 foreach comp [$dataobj components] { 649 653 set xv [$dataobj mesh $comp] … … 653 657 set color $_dataobj2color($dataobj) 654 658 } else { 655 set color [$dataobj hints color] 656 if {"" == $color} { 657 set color black 658 } 659 } 660 659 set color black 660 } 661 661 if {[info exists _dataobj2width($dataobj)]} { 662 662 set lwidth $_dataobj2width($dataobj)
Note: See TracChangeset
for help on using the changeset viewer.