Changeset 5510 for branches/uq


Ignore:
Timestamp:
May 13, 2015 9:44:59 AM (9 years ago)
Author:
mmh
Message:

fix histogram xvector to allow labels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uq/gui/scripts/histogram.tcl

    r5418 r5510  
    376376        return
    377377    }
    378     set xv [$_hist get $comp.xvector]
    379     set yv [$_hist get $comp.yvector]
    380     if { $xv != "" && $yv != "" } {
    381         $_yvalues($comp) set $yv
    382         $_xvalues($comp) set $xv
    383     }
     378
     379    # If we reached here, must be <yvector>
     380    $_yvalues($comp) set [$_hist get ${comp}.yvector]
     381    $_xvalues($comp) length [$_yvalues($comp) length]
     382    $_xvalues($comp) seq 1 [$_yvalues($comp) length]
     383    set _xlabels($comp) [$_hist get ${comp}.xvector]
    384384    set _comp2hist($comp) [list $_xvalues($comp) $_yvalues($comp)]
    385385}
Note: See TracChangeset for help on using the changeset viewer.