<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 18, 2012 at 12:22 AM, Neil Toronto <span dir="ltr"><<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 12/17/2012 05:48 PM, Robby Findler wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I'm not sure about this change. If I pass in a buggy function, I'm not<br>
sure I'd want the errors to get swallowed.<br>
</blockquote>
<br></div>
The errors are almost always division by zero or some similar mathematical domain error, because plotted functions get sent exact rational numbers. Also, it's usually obvious on the plot where there's an error. In 3D and contour plots in particular, the holes are gaping.<div class="im">
<br></div></blockquote><div><br></div><div>You could catch only <a href="file:///Users/robby/git/exp/plt/doc/reference/exns.html?q=exn%3A#(def._((lib._racket/private/base..rkt)._exn~3afail~3acontract~3adivide-by-zero))">exn:fail:contract:divide-by-zero</a><span class=""> by default if that gets most of them?</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
How about making the plot but putting a red thing on it (and maybe<br>
showing the error text on mouseover)?<br>
</blockquote>
<br></div>
That's not a bad idea. I'll think about how to implement it.<span class=""><font color="#888888"><br>
<br>
Neil ⊥<br>
<br>
</font></span></blockquote></div><br></div>