bugGNU Octave - Bugs: bug #54326, hist() crashes when all values are...

 
 

bug #54326: hist() crashes when all values are identical

Submitter:  Sébastien Villemot <svillemot>
Submitted:  Tue 17 Jul 2018 01:32:00 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Jul 2018 03:59:44 PM UTC, comment #2: 

I made a few minor tweaks to the wording of the commit message and checked the patch in here (https://hg.savannah.gnu.org/hgweb/octave/rev/b96ab99e67bb).  Thanks for the quick patch.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 17 Jul 2018 01:46:21 PM UTC, comment #1: 

Changeset attached. Applies on top of the stable branch.

(file #44569)

Sébastien Villemot <svillemot>
Tue 17 Jul 2018 01:32:00 PM UTC, original submission:  

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).

Sébastien Villemot <svillemot>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44569:  bug54326.patch added by svillemot (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by svillemot (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-17 rik5 CategoryPlotting Octave Function
        StatusNone Fixed
        Open/ClosedOpen Closed
    2018-07-17 svillemot Attached File- Added bug54326.patch, #44569

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code