bugGNU Octave - Bugs: bug #38508, hist does not support axes handle...

 
 

bug #38508: hist does not support axes handle as an argument

Submitter:  None
Submitted:  Wed 13 Mar 2013 02:05:58 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  rik5
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 03 Aug 2013 05:06:52 PM UTC, comment #3: 

I fixed this on the development branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/b491ef539071).  It will be a part of the next release, 3.8, or you can build from Mercurial sources to see the fix.

Rik <rik5>
Group administrator
Thu 14 Mar 2013 02:25:49 PM UTC, comment #2: 

I forgot to add the following command before creating the figure when entering the bug:


xcenters = [-2,0,1,2];


Anonymous
Wed 13 Mar 2013 05:35:51 PM UTC, comment #1: 

Confirmed on the development branch as well.  There are, in fact, a number of functions for which an axis handle is accepted as the first argument.  Besides hist, fplot, mesh, meshc, etc. also need this fix.  It's an easy addition so I'm changing the bug to "In Progress" and assigning it to myself.

Rik <rik5>
Group administrator
Wed 13 Mar 2013 02:05:58 PM UTC, original submission:  

The following does not plot anything in Octave 3.6.2


data = randn(1000,1);
figure
s(1) = subplot(2,1,1);
s(2) = subplot(2,1,2);
hist(s(1),data,50)
hist(s(2),data,xcenters)


and generates the following warning in the console window:

>> hist(s(1),data,50)

warning: hist: bin values not sorted on input

>> hist(s(2),data,xcenters)

warning: hist: bin values not sorted on input


Anonymous

 

(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)
  •  

    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
    2013-08-03 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2013-03-13 rik5 StatusNone In Progress
        Assigned toNone rik5

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code