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

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

[Octave-bug-tracker] [bug #54326] hist() crashes when all values are ide


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #54326] hist() crashes when all values are identical
Date: Tue, 17 Jul 2018 09:32:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

                 Summary: hist() crashes when all values are identical
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: Tue 17 Jul 2018 01:32:00 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

For example:


octave:1> hist ([ 1 1 ])
error: bar: X vector values must be unique
error: called from
    __bar__ at line 62 column 9
    bar at line 118 column 16
    hist at line 192 column 5


MATLAB is able to deal with this case correctly, and creates bins with a unit
space between them.

I will attach a patch in the next comment (I need the bug number for the
commit message).




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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