Changeset 738 for trunk/gui/scripts/energyLevels.tcl
- Timestamp:
- May 16, 2007, 7:37:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/energyLevels.tcl
r676 r738 362 362 } 363 363 } 364 365 if {"" != $_emin && $_emin == $_emax} { 366 set _emin [expr {$_emin-0.1}] 367 set _emax [expr {$_emax+0.1}] 368 } 369 364 370 set _eviewmin "" ;# reset zoom view 365 371 set _eviewmax "" … … 471 477 set _ehomo [lindex $elist $nhomo] 472 478 set _elumo [lindex $elist $nlumo] 473 set gap [expr {$_elumo - $_ehomo}] 474 set _edefmin [expr {$_ehomo - 0.3*$gap}] 475 set _edefmax [expr {$_elumo + 0.3*$gap}] 476 477 set y [expr {($_ehomo-$_emin)*$e2y + $yzoom0}] 478 set id [$c create rectangle $xx0 $y $xx1 $y0 \ 479 -stipple [Rappture::icon rdiag] \ 480 -outline "" -fill $itk_option(-shadecolor)] 481 $c lower $id 479 if {"" != $_elumo && "" != $_ehomo} { 480 set gap [expr {$_elumo - $_ehomo}] 481 set _edefmin [expr {$_ehomo - 0.3*$gap}] 482 set _edefmax [expr {$_elumo + 0.3*$gap}] 483 484 set y [expr {($_ehomo-$_emin)*$e2y + $yzoom0}] 485 set id [$c create rectangle $xx0 $y $xx1 $y0 \ 486 -stipple [Rappture::icon rdiag] \ 487 -outline "" -fill $itk_option(-shadecolor)] 488 $c lower $id 489 } 482 490 } 483 491 } … … 543 551 } 544 552 545 if {"" != $ _ehomo && "" != $_elumo} {553 if {"" != $topdobj && "" != $_ehomo && "" != $_elumo} { 546 554 set ecol $_dobj2cols($topdobj-energy) 547 555 set units [$topdobj columns -units $ecol]
Note: See TracChangeset
for help on using the changeset viewer.