Changeset 3726 for branches


Ignore:
Timestamp:
Jun 29, 2013 7:40:00 AM (11 years ago)
Author:
gah
Message:

bugfix: set log scale from hint in XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/gui/scripts/xyresult.tcl

    r3717 r3726  
    391391        foreach {map(x) map(y)} [GetAxes $dataobj] break
    392392        foreach axis {x y} {
     393            if {[$dataobj hints ${axis}scale] == "log"} {
     394                set _limits(${axis}log) 1
     395            }
    393396            # Get defaults for both linear and log scales
    394397            foreach type {lin log} {
     
    552555
    553556    foreach axis [$g axis names] {
    554         if { [$g axis cget $axis -logscale] } {
     557        if { [info exist _limits(${axis}log)] } {
    555558            set type "log"
     559            set logscale 1
    556560        } else {
    557561            set type "lin"
     562            set logscale 0
    558563        }
    559564        set amin ""
     
    568573            -hide yes -checklimits no \
    569574            -command [itcl::code $this GetFormattedValue $axis] \
    570             -min $amin -max $amax
     575            -min $amin -max $amax -logscale $logscale
    571576    }
    572577    # Presumably you want at least an X-axis and Y-axis displayed.
Note: See TracChangeset for help on using the changeset viewer.