Thanks, Neil.<span></span><br><br><a href="x-apple-data-detectors://32">On Saturday, August 4, 2012</a>, Neil Toronto wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 08/03/2012 11:59 AM, Doug Williams wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(require plot)<br>
<br>
(plot (contour-intervals<br>
(lambda (x y)<br>
(define z (- x y))<br>
(cond ((< z -1) -1)<br>
((> z 1) 1)<br>
(else z)))<br>
-2 2 -2 2))<br>
<br>
...<br>
<br>
Why is the lower white triangle not colored red - they definitely have<br>
a value of 1? It's like those points are completely ignored.<br>
</blockquote>
<br>
Turns out it was an error in the marching squares (intervals) implementation: a `<' should have been a `<=' to make an upper test symmetric with the corresponding lower test.<br>
<br>
I've pushed the fix. Thanks again!<br>
<br>
Neil ⊥<br>
<br>
_________________________<br>
Racket Developers list:<br>
<a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/<u></u>dev</a><br>
</blockquote>