- Timestamp:
- Dec 4, 2009 5:10:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/liveplot
- Property rcs:date changed from 2003/05/22 21:40:10 to 2003/08/11 18:13:56
- Property rcs:lines changed from +11 -8 to +49 -49
- Property rcs:rev changed from 1.33 to 1.34
r695 r719 1276 1276 .bkg.cw config -state normal 1277 1277 set k 0 1278 if {$expgui(FitFunction) == 3} {1279 # o is number of refinable terms1280 set o [expr {2 + ($expgui(FitOrder) - 2)/2}]1281 grid [label $top.lbl -text terms] -col $k -row 11282 if {$expgui(FitOrder) >= 4} {1283 grid [label $top.rlbl -text radii] -col $k -row 21284 }1285 incr k1286 set width 71287 } else {1278 # if {$expgui(FitFunction) == 3} { 1279 # # o is number of refinable terms 1280 # set o [expr {2 + ($expgui(FitOrder) - 2)/2}] 1281 # grid [label $top.lbl -text terms] -col $k -row 1 1282 # if {$expgui(FitOrder) >= 4} { 1283 # grid [label $top.rlbl -text radii] -col $k -row 2 1284 # } 1285 # incr k 1286 # set width 7 1287 # } else { 1288 1288 set o $expgui(FitOrder) 1289 1289 set width 10 1290 }1290 # } 1291 1291 for {set i 0} {$i < $o} {incr i} { 1292 1292 if {$i >= [llength $termlist]} {lappend termlist 0.} … … 1296 1296 grid [entry $top.$i.e -textvariable bkgeditbox($i) -width $width] \ 1297 1297 -col 2 -row 1 1298 if {$expgui(FitFunction) == 3 && $i > 1} {1299 set j [expr $i-2]1300 if {$j >= [llength $expgui(RadiiList)]} {lappend expgui(RadiiList) 0.}1301 set bkgeditbox(r$j) [lindex $expgui(RadiiList) $j]1302 if {$bkgeditbox(r$j) == 0} {1303 set bkgeditbox(r$j) ??1304 }1305 grid [frame $top.r$j -relief groove -bd 3] \1306 -col [expr $k-2] -row 21307 grid [label $top.r$j.l -text "[expr -1+$i]"] -col 1 -row 11308 grid [entry $top.r$j.e -textvariable bkgeditbox(r$j) -width $width] \1309 -col 2 -row 11310 }1298 # if {$expgui(FitFunction) == 3 && $i > 1} { 1299 # set j [expr $i-2] 1300 # if {$j >= [llength $expgui(RadiiList)]} {lappend expgui(RadiiList) 0.} 1301 # set bkgeditbox(r$j) [lindex $expgui(RadiiList) $j] 1302 # if {$bkgeditbox(r$j) == 0} { 1303 # set bkgeditbox(r$j) ?? 1304 # } 1305 # grid [frame $top.r$j -relief groove -bd 3] \ 1306 # -col [expr $k-2] -row 2 1307 # grid [label $top.r$j.l -text "[expr -1+$i]"] -col 1 -row 1 1308 # grid [entry $top.r$j.e -textvariable bkgeditbox(r$j) -width $width] \ 1309 # -col 2 -row 1 1310 # } 1311 1311 incr k 1312 1312 } … … 1330 1330 set good 1 1331 1331 1332 if {$expgui(FitFunction) == 3} {1333 set expgui(RadiiList) {}1334 for {set j 0} {$j < ($expgui(FitOrder) - 2)/2} {incr j} {1335 lappend expgui(RadiiList) $bkgeditbox(r$j)1336 if {[catch {expr $bkgeditbox(r$j)}]} {1337 $top.r$j.e config -fg red1338 set good 01339 } elseif {$bkgeditbox(r$j) == 0} {1340 $top.r$j.e config -fg red1341 set good 01342 } else {1343 $top.r$j.e config -fg black1344 }1345 }1346 set o [expr {2 + ($expgui(FitOrder) - 2)/2}]1347 } else {1332 # if {$expgui(FitFunction) == 3} { 1333 # set expgui(RadiiList) {} 1334 # for {set j 0} {$j < ($expgui(FitOrder) - 2)/2} {incr j} { 1335 # lappend expgui(RadiiList) $bkgeditbox(r$j) 1336 # if {[catch {expr $bkgeditbox(r$j)}]} { 1337 # $top.r$j.e config -fg red 1338 # set good 0 1339 # } elseif {$bkgeditbox(r$j) == 0} { 1340 # $top.r$j.e config -fg red 1341 # set good 0 1342 # } else { 1343 # $top.r$j.e config -fg black 1344 # } 1345 # } 1346 # set o [expr {2 + ($expgui(FitOrder) - 2)/2}] 1347 # } else { 1348 1348 set o $expgui(FitOrder) 1349 }1349 # } 1350 1350 set termlist {} 1351 1351 for {set j 0} {$j < $o} {incr j} { … … 1778 1778 histinfo $hst backtype set $expgui(FitFunction) 1779 1779 # stick the r values into the list 1780 if {$expgui(FitFunction) == 3} {1781 set t [lrange $termlist 0 1]1782 foreach a [lrange $termlist 2 end] b $expgui(RadiiList) {lappend t $a $b}1783 } else {1780 # if {$expgui(FitFunction) == 3} { 1781 # set t [lrange $termlist 0 1] 1782 # foreach a [lrange $termlist 2 end] b $expgui(RadiiList) {lappend t $a $b} 1783 # } else { 1784 1784 set t $termlist 1785 }1785 # } 1786 1786 histinfo $hst backterms set [llength $t] 1787 1787 set num 0 … … 2164 2164 "1 - Shifted Chebyschev polynomial" 2165 2165 "2 - Cosine Fourier series" 2166 "3 - Radial distribution peaks"2167 2166 "4 - Power series in Q**2n/n!" 2168 2167 "5 - Power series in n!/Q**2n" … … 2174 2173 -command "set termlist {};BkgFillTermBoxes nosave" 2175 2174 } 2175 # "3 - Radial distribution peaks" 2176 2176 set expgui(FitFunction) 1 2177 2177
Note: See TracChangeset
for help on using the changeset viewer.