Changeset 858 for trunk/gui/scripts


Ignore:
Timestamp:
Jan 25, 2008, 10:25:14 AM (17 years ago)
Author:
gah
Message:
 
Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/historesult.tcl

    r856 r858  
    2222option add *HistogramResult*y.loose 1 widgetDefault
    2323option add *HistogramResult*Element.relief solid widgetDefault
    24 option add *HistogramResult*Element.borderWidth 0 widgetDefault
     24option add *HistogramResult*Element.borderWidth 1 widgetDefault
     25# Don't let the step size default to 1.0 (for barcharts)
     26option add *HistogramResult*x.stepSize 0.0 widgetDefault
    2527
    2628option add *HistogramResult.width 3i widgetDefault
     
    791793                set min $_limits(${axis}lin-min)
    792794                set max $_limits(${axis}lin-max)
    793 
    794795                if {[string match y* $axis]} {
    795796                    # add a little padding
  • trunk/gui/scripts/unirect2d.tcl

    r856 r858  
    136136        }
    137137        v - xlin - vlog - z - zlin - zlog {
    138             set min [blt::vector expr min($_zv)]
    139             set max [blt::vector expr max($_zv)]
     138            if { [$_zv length] > 0 } {
     139               set min [blt::vector expr min($_zv)]
     140               set max [blt::vector expr max($_zv)]
     141            } else {
     142                set min 0.0
     143                set max 1.0
     144            }
    140145            set axis "zaxis"
    141146        }
Note: See TracChangeset for help on using the changeset viewer.