bugGNU Octave - Bugs: bug #42401, function bar is not correct for...

 
 

bug #42401: function bar is not correct for "hist" and "histc"

Submitter:  Michael Godfrey <godfrey>
Submitted:  Wed 21 May 2014 04:44:15 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 23 May 2014 08:05:54 PM UTC, comment #3: 

I fixed this on stable (http://hg.savannah.gnu.org/hgweb/octave/rev/d99475e26c78).  It should be a part of 3.8.2 which is coming soon.

Rik <rik5>
Group administrator
Fri 23 May 2014 03:30:15 PM UTC, comment #2: 

Confirmed.  This is a regression between 3.6.4 and 3.8.0.  This is probably a pretty easy m-file fix.  I added it to the list of short projects on the Octave wiki (http://wiki.octave.org/Short_projects#Bugs).

Rik <rik5>
Group administrator
Wed 21 May 2014 06:41:11 PM UTC, comment #1: 

Minor inaccureacy: The place where the problem is is
in _bar_ which is the private function called by bar.
The only thing that bar does in call _bar_

Michael Godfrey <godfrey>
Group Member
Wed 21 May 2014 04:44:15 PM UTC, original submission:  

The manual describes the behavior for the STYLE
argument. "hist" and "histc" should
produce no gaps between the bars, but they
both show gaps. Setting the STYLE argument to
1 produces no gaps,

This problem affects hist since it calls bar
with STYLE "hist". But, the result is not touching
bars. Using 1 instead of "hist" produces touching
bars, but the fix should go in bar.

It appears that the problem is at around line 123 in
bar. There are variables width, cwidth, and gwidth,
and the commentas at line 134 are ambiguous about
what at least width and cwidth should mean. In any
case since setting the STYLE argument to 1 gives
no gaps, the fix should not be too difficult.
(jwe wrote the code...)

Michael Godfrey <godfrey>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 godfrey (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
    2014-05-23 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-05-23 rik5 Item GroupInaccurate Result Regression
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code