changeset 12648:c6378cec77af stable

Fix unfilled contourf when lvl = [0,0] (bug #33177). * __contour__.m: Add sqrt(eps) to lvl_eps to prevent it from ever being exactly zero.
author Marco Caliari marco.caliari@univr.it
date Wed, 04 May 2011 20:34:10 -0700
parents e38fb1910563
children 5fd90b7cb787
files scripts/plot/private/__contour__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__contour__.m
+++ b/scripts/plot/private/__contour__.m
@@ -530,7 +530,7 @@
   ## it be an absolute or relative tolerance, or switch from one to the
   ## other depending on the value of lev?
   if (isscalar (lev))
-    lvl_eps = abs (lev) * sqrt (eps);
+    lvl_eps = abs (lev) * sqrt (eps) + sqrt (eps);
   else
     tmp = min (abs (diff (lev)));
     if (tmp < 10*eps)