Changeset 2873 for trunk


Ignore:
Timestamp:
Mar 21, 2012 12:15:27 PM (12 years ago)
Author:
ldelgass
Message:

Try to set axis labels for vtkcontourviewer. Still need to fix problem that
mesh axis labels don't propagate from meshes to fields.

File:
1 edited

Legend:

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

    r2792 r2873  
    923923            array set view $location
    924924        }
     925
     926        foreach axis { x y z } {
     927            set label [$_first hints ${axis}label]
     928            if { $label != "" } {
     929                SendCmd "axis name $axis $label"
     930            }
     931            set units [$_first hints ${axis}units]
     932            if { $units != "" } {
     933                SendCmd "axis units $axis $units"
     934            }
     935        }
     936
    925937        foreach tag [array names _datasets $_first-*]  {
    926938            SendCmd "dataset visible 1 $tag"
Note: See TracChangeset for help on using the changeset viewer.