Ignore:
Timestamp:
Sep 13, 2013, 2:51:22 PM (11 years ago)
Author:
gah
Message:

fix z-axis labels for contour/heightmap

File:
1 edited

Legend:

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

    r3922 r3923  
    2020    private variable _xmlobj "";        # ref to XML obj with device data
    2121    private variable _cloud "";         # lib obj representing this cloud
    22     private variable _units "m m m" ;   # system of units for x, y, z
     22    private variable _units "" ;        # system of units for x, y, z
    2323    private variable _axis2label;       #
    2424    private variable _axis2units;       #
     
    116116    set _units [$_cloud get units]
    117117    set first [lindex $_units 0]
     118    set list {}
    118119    foreach u $_units axis { x y z } {
    119120        if { $u != "" } {
     
    122123            set _axis2units($axis) $first
    123124        }
    124     }
     125        lappend list $_axis2units($axis)
     126    }
     127    set _units $list
    125128    foreach label [$_cloud get labels] axis { x y z } {
    126129        if { $label != "" } {
     
    148151        foreach axis {x y z} units $_units {
    149152            set value [Rappture::Units::convert [set $axis] \
    150                 -context $units -to $units -units off]
    151 
     153                        -context $units -to $units -units off]
    152154            set $axis $value;           # Set the (x/y/z) coordinate to
    153155                                        # converted value.
Note: See TracChangeset for help on using the changeset viewer.