Index: /trunk/tools/eam/teleff/warpstats.sh
===================================================================
--- /trunk/tools/eam/teleff/warpstats.sh	(revision 41722)
+++ /trunk/tools/eam/teleff/warpstats.sh	(revision 41723)
@@ -75,7 +75,10 @@
  label +y "detected number"
 
- $Xlegend = 0.02; $dXlegend = 0.03
- $Ylegend = 0.95; $dYlegend = 0.02
- line -frac $Xlegend $Ylegend to {$Xlegend + $dXlegend} $Ylegend -c blue  -lw 3; textline -frac -justify 5 {$Xlegend + $dXlegend + 0.01} $Ylegend "unmasked source positions (psfqf > 0.85)"; $Ylegend -= $dYlegend
+ vstat -q numTotal; $Ntotal = $TOTAL
+ 
+ fprintf "%d total sources" $Ntotal
+
+ legend.init 0.02 0.95 0.03 0.02
+ sprintf line "unmasked source positions (psfqf > 0.85) [%.1f pct]" {100*$FracBrightPoss};  legend.line blue  3 solid "$line"
 end
 
