bugGNU Octave - Bugs: bug #31573, bar() fails when only one column...

 
 

bug #31573: bar() fails when only one column of data is given

Submitter:  None
Submitted:  Sun 07 Nov 2010 12:23:04 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Tamito KAJIYAMA Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 08 Nov 2010 01:01:42 AM UTC, comment #4: 
Ben Abbott <bpabbott>
Group Member
Sun 07 Nov 2010 10:47:35 PM UTC, comment #3: 

Your attached patch works for me.  Go ahead and commit.

Rik <rik5>
Group administrator
Sun 07 Nov 2010 09:22:37 AM UTC, comment #2: 

I've attached a patch (not yet pushed).

(file #21955)

Ben Abbott <bpabbott>
Group Member
Sun 07 Nov 2010 09:10:50 AM UTC, comment #1: 

With the developers sources I can confirm the error.


bar(1,1)
error: __bar__: A(I,J): row index out of bounds; value 1 out of bound 0


Ben Abbott <bpabbott>
Group Member
Sun 07 Nov 2010 12:23:04 AM UTC, original submission:  

The bar() function fails when input data consists of only one column.
For instance, bar(1, 1) fails as follows:

octave-3.2.4.exe:2> bar(1, 1)
error: A(I): Index exceeds matrix dimension.
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\__bar__.m at line 129, column 22
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\bar.m at line 67, column 19
octave-3.2.4.exe:2>
+verbatim+
A patch for fixing this problem is in the attachment.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21952:  octave-3.2.4-barplot.patch added by None (484B - application/octet-stream)

 

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 bpabbott (Posted a comment)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-11-08 bpabbott StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2010-11-07 bpabbott Assigned toNone bpabbott
    2010-11-07 bpabbott Attached File- Added changeset.patch, #21955
        StatusConfirmed Patch Submitted
    2010-11-07 bpabbott StatusNone Confirmed
    2010-11-07 None Attached File- Added octave-3.2.4-barplot.patch, #21952

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code