Changeset 4667


Ignore:
Timestamp:
Nov 8, 2014, 8:25:19 PM (10 years ago)
Author:
ldelgass
Message:

Some minor fixes from release branch

File:
1 edited

Legend:

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

    r4659 r4667  
    427427    set min ""
    428428    set max ""
    429     blt::vector tmp zero
    430429
    431430    foreach cname [array names _comp2dims] {
     
    453452
    454453                if {$log} {
    455                     # on a log scale, use abs value and ignore 0's
     454                    blt::vector tmp zero
     455                    # on a log scale, use abs value and ignore zeros
    456456                    $vname dup tmp
    457457                    $vname dup zero
    458                     zero expr {tmp == 0}            ;# find the 0's
     458                    zero expr {tmp == 0}            ;# find the zeros
    459459                    tmp expr {abs(tmp)}             ;# get the abs value
    460                     tmp expr {tmp + zero*max(tmp)}  ;# replace 0's with abs max
     460                    tmp expr {tmp + zero*max(tmp)}  ;# replace zeros with abs max
    461461                    set axisMin [blt::vector expr min(tmp)]
    462462                    set axisMax [blt::vector expr max(tmp)]
     463                    blt::vector destroy tmp zero
    463464                } else {
    464465                    set axisMin [$vname min]
     
    477478                }
    478479            }
    479             2D - 3D {
     480            default {
    480481                if {[info exists _comp2limits($cname)]} {
    481482                    array set limits $_comp2limits($cname)
     
    519520        }
    520521    }
    521     blt::vector destroy tmp zero
    522522    set val [$_field get "${axis}axis.min"]
    523523    if {"" != $val && "" != $min} {
Note: See TracChangeset for help on using the changeset viewer.