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

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

[Octave-bug-tracker] [bug #32275] "surf" function incorrectly handles Na


From: D Walker
Subject: [Octave-bug-tracker] [bug #32275] "surf" function incorrectly handles NaN in colour data
Date: Fri, 28 Jan 2011 13:54:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13

URL:
  <http://savannah.gnu.org/bugs/?32275>

                 Summary: "surf" function incorrectly handles NaN in colour
data
                 Project: GNU Octave
            Submitted by: staccato123
            Submitted on: Fri Jan 28 13:54:18 2011
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: D Walker
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Test Case:

>> c = [1 1.5 -1 0.2 2; 2 1.8 1.2 0.4 -0.8;1.6 NaN 0.7 2 -2;-1.1 1.5 0.1 -0.7
0];
>> surf(zeros(size(c)),c)

Produces matlab_surf_nan_bug.png in matlab and octave_surf_nan_bug.png in
octave.

Using 

>>surf(zeros(size(c))+(c-c),c)


in Octave (So there is a NaN in the zeroes matrix to match the one in the
colour matrix) produces octave_surf_bug_2.png. Looks like there's some
difference in the averaging to me.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri Jan 28 13:54:18 2011  Name: octave_surf_bug_2.png  Size: 6kB   By:
staccato123

<http://savannah.gnu.org/bugs/download.php?file_id=22545>
-------------------------------------------------------
Date: Fri Jan 28 13:54:18 2011  Name: octave_surf_nan_bug.png  Size: 6kB  
By: staccato123

<http://savannah.gnu.org/bugs/download.php?file_id=22546>
-------------------------------------------------------
Date: Fri Jan 28 13:54:18 2011  Name: matlab_surf_nan_bug.png  Size: 8kB  
By: staccato123

<http://savannah.gnu.org/bugs/download.php?file_id=22547>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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