Changeset 4402


Ignore:
Timestamp:
Jun 20, 2014, 5:59:53 PM (5 years ago)
Author:
ldelgass
Message:

Change min/max format from %.2g to %g. TODO: apply this to isomarkers?

Location:
trunk/gui/scripts
Files:
3 edited

Legend:

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

    r4336 r4402  
    10571057    set tf $_obj2style($tag)
    10581058    foreach {vmin vmax} [limits $tf] break
    1059     $c itemconfigure vmin -text [format %.2g $vmin]
     1059    $c itemconfigure vmin -text [format %g $vmin]
    10601060    $c coords vmin $lx $ly
    10611061
    1062     $c itemconfigure vmax -text [format %.2g $vmax]
     1062    $c itemconfigure vmax -text [format %g $vmax]
    10631063    $c coords vmax [expr {$w-$lx}] $ly
    10641064
  • trunk/gui/scripts/nanovisviewer.tcl

    r4343 r4402  
    803803
    804804    foreach {min max} $_limits($cname) break
    805     $c itemconfigure vmin -text [format %.2g $min]
     805    $c itemconfigure vmin -text [format %g $min]
    806806    $c coords vmin $lx $ly
    807807
    808     $c itemconfigure vmax -text [format %.2g $max]
     808    $c itemconfigure vmax -text [format %g $max]
    809809    $c coords vmax [expr {$w-$lx}] $ly
    810810
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r4384 r4402  
    23042304
    23052305    foreach {min max} $_limits($cname) break
    2306     $c itemconfigure vmin -text [format %.2g $min]
     2306    $c itemconfigure vmin -text [format %g $min]
    23072307    $c coords vmin $lx $ly
    23082308
    2309     $c itemconfigure vmax -text [format %.2g $max]
     2309    $c itemconfigure vmax -text [format %g $max]
    23102310    $c coords vmax [expr {$w-$lx}] $ly
    23112311
Note: See TracChangeset for help on using the changeset viewer.