Changeset 2744 for trunk/gui/scripts/xylegend.tcl
- Timestamp:
- Dec 27, 2011, 2:45:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/xylegend.tcl
r2743 r2744 61 61 private variable _lastColorIndex "" 62 62 private variable _dispatcher "" ;# dispatcher for !events 63 private variable _graph 64 private variable _tree 65 private variable _diff "";# Polygon marker used for difference.66 private variable _rename "";# Node selected to be renamed.63 private variable _graph "" 64 private variable _tree "" 65 private variable _diff ""; # Polygon marker used for difference. 66 private variable _rename ""; # Node selected to be renamed. 67 67 private variable _diffelements 68 68 private variable _unmapHidden 0 … … 451 451 update 452 452 # Step 1. Get the x-values for each curve, then sort them to get the 453 # 453 # unique values. 454 454 455 455 set labels {} … … 465 465 466 466 # Step 2. Now for each curve, generate a cubic spline of that curve 467 # 468 # 469 # 467 # and interpolate to get the corresponding y-values for each 468 # abscissa. Normally the abscissa are the same, so we're 469 # interpolation the knots. 470 470 471 471 set x [blt::vector create \#auto -command ""] … … 488 488 489 489 # Step 3. Create a new curve which is the average. Append it to the 490 # 490 # the end. 491 491 492 492 set count 0 … … 524 524 if { [info exists _diffelements($elem1)] && 525 525 [info exists _diffelements($elem2)] } { 526 array unset _diffelements; 527 return; 526 array unset _diffelements; # Toggle the difference. 527 return; 528 528 } 529 529 array unset _diffelements
Note: See TracChangeset
for help on using the changeset viewer.