Changeset 2315 for branches/blt4


Ignore:
Timestamp:
Jul 20, 2011, 5:24:54 PM (13 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/gui/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/bugreport.tcl

    r2173 r2315  
    8686        set w [winfo reqwidth .bugreport]
    8787        set h [winfo reqheight .bugreport]
     88        incr h 300
    8889        set x [expr {([winfo screenwidth .bugreport]-$w)/2}]
    8990        if {$x < 0} {set x "+0"} else {set x "+$x"}
  • branches/blt4/gui/scripts/xyprint.tcl

    r2048 r2315  
    310310    # Axis component
    311311    foreach axis [$orig axis names] {
     312        if { $axis == "z" } {
     313            continue
     314        }
    312315        if { [$orig axis cget $axis -hide] } {
    313316            continue
     
    385388    #
    386389    foreach axis [$_clone axis names] {
     390        if { $axis == "z" } {
     391            continue
     392        }
    387393        if { [$_clone axis cget $axis -hide] } {
    388394            continue
     
    13681374    $itk_component(axis_menu) delete all
    13691375    foreach axis $names {
     1376        if { $axis == "z" } {
     1377            continue
     1378        }
    13701379        if { ![$_clone axis cget $axis -hide] } {
    13711380            $itk_component(axis_menu) add -text $axis -value $axis \
  • branches/blt4/gui/scripts/xyresult.tcl

    r2242 r2315  
    292292        set params(-width) 0
    293293    }
    294 
    295294    # 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" } {
    297296        if {$params(-color) == "autoreset"} {
    298297            set _autoColorI 0
    299298        }
    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        }
    302303        set params(-color) $color
    303 
    304304        # set up for next auto color
    305305        if {[incr _autoColorI] >= [llength $itk_option(-autocolors)]} {
     
    319319        set params(-color) [Rappture::color::brightness \
    320320            $params(-color) $params(-brightness)]
    321 
    322321        set bg [$itk_component(plot) cget -plotbackground]
    323322        foreach {h s v} [Rappture::color::RGBtoHSV $bg] break
     
    432431        # find the axes for this dataobj (e.g., {x y2})
    433432        foreach {map(x) map(y)} [GetAxes $dataobj] break
    434 
    435433        foreach axis {x y} {
    436434            # get defaults for both linear and log scales
     
    439437                set id $map($axis)$type
    440438                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                }
    441447                if {"" != $min && "" != $max} {
    442448                    if {![info exists _limits($id-min)]} {
     
    453459                }
    454460            }
    455 
    456461            if {[$dataobj hints ${axis}scale] == "log"} {
    457462                Axis scale $map($axis) log
     
    645650        set label [$dataobj hints label]
    646651        foreach {mapx mapy} [GetAxes $dataobj] break
    647 
    648652        foreach comp [$dataobj components] {
    649653            set xv [$dataobj mesh $comp]
     
    653657                set color $_dataobj2color($dataobj)
    654658            } else {
    655                 set color [$dataobj hints color]
    656                 if {"" == $color} {
    657                     set color black
    658                 }
    659             }
    660 
     659                set color black
     660            }
    661661            if {[info exists _dataobj2width($dataobj)]} {
    662662                set lwidth $_dataobj2width($dataobj)
Note: See TracChangeset for help on using the changeset viewer.