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

 
 

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

Submitted by:  Michael Godfrey <godfrey>
Submitted on:  Wed 21 May 2014 04:44:15 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: GodfreyOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 May 2014 08:05:54 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 23 May 2014 03:30:15 PM UTCrik5Item GroupInaccurate Result=>Regression
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1