Changeset 3711


Ignore:
Timestamp:
Jun 24, 2013 9:34:21 AM (10 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r3705 r3711  
    485485                # store results -- ex: _limits(x2log-min)
    486486                set id $map($axis)$type
    487                 foreach {min max} [$dataobj limits $axis$type] break
    488                 set amin [$dataobj hints ${axis}min]
    489                 set amax [$dataobj hints ${axis}max]
    490                 if { $amin != "" } {
    491                     set min $amin
    492                 }
    493                 if { $amax != "" } {
    494                     set max $amax
    495                 }
     487                set min [$dataobj hints ${axis}min]
     488                set max [$dataobj hints ${axis}max]
    496489                if {"" != $min && "" != $max} {
    497490                    if {![info exists _limits($id-min)]} {
     
    507500                    }
    508501                }
    509             }
    510             if 0 {
    511             if {[$dataobj hints ${axis}scale] == "log"} {
    512                 Axis scale $map($axis) log
    513             }
    514502            }
    515503        }
     
    19411929        set type "lin"
    19421930    }
    1943     set amin $_limits(${axis}${type}-min)
    1944     set amax $_limits(${axis}${type}-max)
     1931    set amin ""
     1932    if { [info exists _limits(${axis}${type}-min)] } {
     1933        set amin $_limits(${axis}${type}-min)
     1934    }
     1935    set amax ""
     1936    if { [info exists _limits(${axis}${type}-max)] } {
     1937        set amax $_limits(${axis}${type}-max)
     1938    }
    19451939    set auto 1
    19461940    if { $amin != "" || $amax != "" } {
Note: See TracChangeset for help on using the changeset viewer.