ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/falsecolor.csh
(Generate patch)

Comparing ray/src/px/falsecolor.csh (file contents):
Revision 2.2 by greg, Mon Apr 6 17:54:11 1992 UTC vs.
Revision 2.3 by greg, Fri Aug 21 15:46:11 1992 UTC

# Line 67 | Line 67 | while ($#argv > 0)
67          case -cb:
68                  set docont=b
69                  breaksw
70 +        case -e:
71 +                set doextrem
72 +                set needfile
73 +                breaksw
74          case -n:
75                  shift argv
76                  set ndivs="$argv[1]"
# Line 131 | Line 135 | if ("$cpict" == "") then
135   else if ("$cpict" == "$picture") then
136          set cpict=
137   endif
138 + if ($?needfile && "$picture" == '-') then
139 +        cat > $td/picture
140 +        set picture=$td/picture
141 + endif
142   if ($decades > 0) then
143          set pc1args=($pc1args -e "map(x)=if(x-10^-$decades,log10(x)/$decades+1,0)")
144          set imap="imap(y)=10^((y-1)*$decades)"
# Line 143 | Line 151 | pcomb $pc0args -e 'v=(y+.5)/yres;vleft=v;vright=v' \
151   ( echo $label; cnt $ndivs \
152                  | rcalc -e '$1='"($scale)*imap(($ndivs-.5-"'$1'")/$ndivs)" \
153                  -e "$imap" ) \
154 <        | psign -cf 1 1 1 -cb 0 0 0 -h `ev "floor(2*$legheight/$ndivs+.5)"` \
155 <        | pfilt -1 -x /2 -y /2 > $td/slab.pic
156 < pcomb $pc0args $pc1args $picture $cpict \
157 <        | pcompos $td/scol.pic 0 0 -t .2 $td/slab.pic 25 0 - $legwidth 0
154 >        | psign -s -.15 -cf 1 1 1 -cb 0 0 0 \
155 >                -h `ev "floor($legheight/$ndivs+.5)"` > $td/slab.pic
156 > if ( $?doextrem ) then
157 >        pextrem -o $picture > $td/extrema
158 >        set minpos=`sed 2d $td/extrema | rcalc -e '$2=$2;$1=$1+'"$legwidth"`
159 >        set minval=`rcalc -e '$1=($3*.3+$4*.59+$5*.11)*'"$mult" $td/extrema | sed -e 2d -e 's/\(.....\).*$/\1/'`
160 >        set maxpos=`sed 1d $td/extrema | rcalc -e '$2=$2;$1=$1+'"$legwidth"`
161 >        set maxval=`rcalc -e '$1=($3*.3+$4*.59+$5*.11)*'"$mult" $td/extrema | sed -e 1d -e 's/\(.....\).*$/\1/'`
162 >        psign -s -.15 -a 2 -h 16 $minval > $td/minv.pic
163 >        psign -s -.15 -a 2 -h 16 $maxval > $td/maxv.pic
164 >        pcomb $pc0args $pc1args $picture $cpict \
165 >                | pcompos $td/scol.pic 0 0 -t .2 $td/slab.pic 0 20 \
166 >                  - $legwidth 0 $td/minv.pic $minpos $td/maxv.pic $maxpos
167 > else
168 >        pcomb $pc0args $pc1args $picture $cpict \
169 >                | pcompos $td/scol.pic 0 0 -t .2 $td/slab.pic 0 20 - $legwidth 0
170 > endif
171   quit:
172   rm -rf $td

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines