Ignore:
Timestamp:
Aug 13, 2011, 7:15:14 PM (13 years ago)
Author:
gah
Message:

new nanoscale

File:
1 edited

Legend:

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

    r2144 r2353  
    147147    set dx [expr {($_xMax - $_xMin) / double($_xNum)}]
    148148    set dy [expr {($_yMax - $_yMin) / double($_yNum)}]
    149     for { set i 0 } { $i < $_xNum } { incr i } {
     149    foreach {a b} $_axisOrder break
     150    for { set i 0 } { $i < [set _${a}Num] } { incr i } {
    150151        set x [expr {$_xMin + (double($i) * $dx)}]
    151         for { set j 0 } { $j < $_yNum } { incr j } {
     152        for { set j 0 } { $j < [set _${b}Num] } { incr j } {
    152153            set y [expr {$_yMin + (double($i) * $dy)}]
    153154            lappend data $x $y
Note: See TracChangeset for help on using the changeset viewer.