<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The following is copied from one of Herbert's responses to someone else:<div>********************************************************************************</div><div>\documentclass{article}<br>\usepackage{amsmath}<br>\usepackage{pstricks-add}<br><br>\begin{document}<br><br>\begin{center}<br>\psset{xunit=2cm,yunit=2cm,algebraic=true}<br>\begin{pspicture}[showgrid=true](-5,-5)(1,1)<br>&nbsp;\psaxes{->}(0,0)(-5,-5)(1,1)[$x$,-90][$y$,180]%<br>&nbsp;\rput(-2,-3){{$y=\dfrac{-2x+8}{~~2x-2}$}}%<br>&nbsp;\psplot {-5}{0.10}{x }%<br>&nbsp;\psplot[linecolor=red,linewidth=1.5pt]{-5}{0.10}{(-2*x+8)/(2*x-2)}%<br>&nbsp;\def\function{ -2 xVal mul 8 add 2 xVal mul -2 add div }%<br>&nbsp;\pstVerb{ /xVal 0 def }% start value<br>&nbsp;\multido{\nA=0+1}{4}{%<br>&nbsp;&nbsp;&nbsp;\psline[linecolor=blue,linewidth=1.5pt]{->}(! xVal xVal )(! xVal<br>\function )<br>&nbsp;&nbsp;&nbsp;\psline[linecolor=blue,linewidth=1.5pt]{->}(! xVal \function )(!<br>\function\space dup)<br>&nbsp;&nbsp;&nbsp;\pstVerb{ /xVal \function\space def}<br>&nbsp;&nbsp;&nbsp;\psline[linestyle=dashed,linecolor=blue]{->}(! xVal xVal)(! xVal 0 )<br>&nbsp;&nbsp;&nbsp;\uput{1ex}[90](! xVal 0 ){$v_{\nA}$}<br>&nbsp;}<br>\end{pspicture}<br>\end{center}<br><br>\end{document}<br>********************************************************************************************</div><div>I am trying to use this as a model for plotting a function using a rectangular grid, but over</div><div>a non-rectangular region. &nbsp;My basic question can be formulated even letting the function be</div><div>the zero constant: &nbsp;so filling say the circle of radius 1 in the xy-plane with lines parallel to the</div><div>coordinate axes, spaced 0.25 apart. &nbsp;My model is as follows, but my question is what goes in the places marked with ??: I can't understand where in the example above the value of xVal is</div><div>incremented, or equivalently, the role of \nA. &nbsp;Of course, if I am making other sytactic errors,</div><div>I'll be grateful for advice about them as well.</div><div>***********************************************************************************************</div><div>\def\function{1 tVal dup mul sub exp 0.5}</div><div>\pstVerb{tVal -0.75 def}</div><div>\multido{??=??}{6}{%</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\psline(!\function \neg tVal)(!\function tVal)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\psline{!tVal \function \neg){!tVal \function)</div><div>}</div><div>***************************************************************************************************<br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br class="Apple-interchange-newline">Zbigniew Nitecki</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Department of Mathematics</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Tufts University</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medford, MA 02155</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">telephones:</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3843</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept.<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3234</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept. fax<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3966</font></p><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span> </div><br></div></body></html>