octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35761] surf() fails when Z values are within


From: Rik
Subject: [Octave-bug-tracker] [bug #35761] surf() fails when Z values are within eps of each other
Date: Wed, 14 Mar 2012 18:50:11 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Follow-up Comment #4, bug #35761 (project octave):

I think the fix lies somewhere else.

This sample code works in the current version of Octave, but produces a
monotone green image with your patch applied.


graphics_toolkit fltk;
[X,Y,Z] = peaks ();
Z * = 1e-30;
surf (X,Y,Z);


The issue is that sometimes the difference between min_val and max_val can be
less than sqrt (DBL_EPSILON) but this doesn't mean there is any problem.  The
color values are scaled so [-1, 0, 1] are just as good as [-1e-30, 0, 1e30].


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35761>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]