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

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

[Octave-bug-tracker] [bug #37501] contour and contourf incorrectly/incom


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #37501] contour and contourf incorrectly/incompatibly handle NaN values
Date: Tue, 18 Apr 2023 21:12:25 -0400 (EDT)

Update of bug #37501 (project octave):

                  Status:               Postponed => Confirmed              
        Operating System:               GNU/Linux => Any                    
                 Summary: contourf incorrect when NaN present on boundary =>
contour and contourf incorrectly/incompatibly handle NaN values 

    _______________________________________________________

Follow-up Comment #8:

I'm noticing though that in general neither contour nor contourf compatibly
handle NaN discontinuities in the data, whether on endpoints or not.

In the matlab docs for contour and contourf, they include the example:


Z = peaks;
Z(:,26) = NaN;
contour(Z);

(and same with contourf(Z))  the result should have a vertical gap in the
center of the plot.  Octave ignores the missing data and plots through that
gap.  See attached comparison images.

seems this is a more general issue of NaN handling than just how it behaves on
the boundary. updating title.

(file #54638)

    _______________________________________________________

Additional Item Attachment:

File name: contourcomp.png                Size:188 KB
    <https://file.savannah.gnu.org/file/contourcomp.png?file_id=54638>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?37501>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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