Changeset 4716 for branches/1.3


Ignore:
Timestamp:
Nov 13, 2014, 5:56:10 AM (5 years ago)
Author:
ldelgass
Message:

merge r4685 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

    • Property svn:mergeinfo changed
      /trunkmerged: 4685
  • branches/1.3/gui/scripts/vtkheightmapviewer.tcl

    r4706 r4716  
    937937        InitSettings -isheightmap -background
    938938
    939         # Let's see how this goes.  I think it's preferable to overloading the
    940         # axis title with the exponent.
    941         SendCmd "axis exp 0 0 0 1"
     939        # Setting a custom exponent and label format for axes is causing
     940        # a problem with rounding.  Near zero ticks aren't rounded by
     941        # the %g format.  The VTK CubeAxes seem to currently work best
     942        # when allowed to automatically set the exponent and precision
     943        # based on the axis ranges.  This does tend to result in less
     944        # visual clutter, so I think it is best to use the automatic
     945        # settings by default.  We can test more fine-grained
     946        # controls on the axis settings tab if necessary.
     947        # -Leif
     948        #SendCmd "axis exp 0 0 0 1"
    942949
    943950        SendCmd "axis lrot z 90"
     
    10401047    if { $_reset } {
    10411048        SendCmd "axis tickpos outside"
    1042         foreach axis { x y z } {
    1043             SendCmd "axis lformat $axis %g"
    1044         }
     1049        #SendCmd "axis lformat all %g"
    10451050       
    10461051        foreach axis { x y z } {
     
    13651370        "-axisminorticks" {
    13661371            set bool $_settings($what)
    1367             foreach axis { x y z } {
    1368                 SendCmd "axis minticks ${axis} $bool"
    1369             }
     1372            SendCmd "axis minticks all $bool"
    13701373        }
    13711374        "-axisvisible" {
     
    20562059        -font "Arial 9"
    20572060
    2058 
    20592061    label $inner.mode_l -text "Mode" -font "Arial 9"
    20602062
Note: See TracChangeset for help on using the changeset viewer.