Changeset 4685


Ignore:
Timestamp:
Nov 10, 2014 4:06:51 AM (9 years ago)
Author:
ldelgass
Message:

I think this should help with nanohub ticket #267036. See the comment in the
source for a brief explanation. Basically, I don't think the manual settings
are well tested and the CubeAxes? will work best if we let the automatic
formatting do its thing.

File:
1 edited

Legend:

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

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