Changeset 4717 for branches/1.3/gui/scripts/field.tcl
 Timestamp:
 Nov 13, 2014 2:59:08 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/1.3/gui/scripts/field.tcl
r4701 r4717 453 453 if {$log} { 454 454 blt::vector tmp zero 455 # on a log scale, use abs value and ignore 0's455 # on a log scale, use abs value and ignore zeros 456 456 $vname dup tmp 457 457 $vname dup zero 458 zero expr {tmp == 0} ;# find the 0's458 zero expr {tmp == 0} ;# find the zeros 459 459 tmp expr {abs(tmp)} ;# get the abs value 460 tmp expr {tmp + zero*max(tmp)} ;# replace 0 's with abs max460 tmp expr {tmp + zero*max(tmp)} ;# replace 0s with abs max 461 461 set axisMin [blt::vector expr min(tmp)] 462 462 set axisMax [blt::vector expr max(tmp)]
Note: See TracChangeset
for help on using the changeset viewer.