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

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

[Octave-bug-tracker] [bug #42401] function bar is not correct for "hist"


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #42401] function bar is not correct for "hist" and "histc"
Date: Wed, 21 May 2014 16:44:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

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

                 Summary: function bar is not correct for "hist" and "histc"
                 Project: GNU Octave
            Submitted by: godfrey
            Submitted on: Wed 21 May 2014 04:44:15 PM GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Godfrey
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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