bugGNU Octave - Bugs: bug #46969, bar(): barwidth

 
 

bug #46969: bar(): barwidth

Submitter:  None
Submitted:  Mon 25 Jan 2016 12:42:42 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  nicmus Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 01 Feb 2016 04:05:55 AM UTC, comment #2: 

Even clearer, try this code


bw = 0.5;
bar (1, 0.5, "barwidth", bw);
xlim ([0, 2]);
set (gca, "xtick", 0:0.2:2);


Octave is working correctly.  Closing report.

Rik <rik5>
Group administrator
Tue 26 Jan 2016 01:24:03 PM UTC, comment #1: 

It looks like it is working to me - running your example, the bar fills the plot window (since it autoscales) but running

xlim

shows the limits of the plot and shows the width changing as I change bw to different values.

John Donoghue <lostbard>
Group Member
Mon 25 Jan 2016 12:42:42 PM UTC, original submission:  

the parameter barwidth doesn't work fine with a bar plot of one element.

try to change the bw parameter

bw = 0.5;
bar(1,0.5,'barwidth',bw)


with more then one element things work fine

bw = 0.5;
bar([1 2],[0.5 0.4],'barwidth',bw)


probably related to #46968

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)
  • -email is unavailable- added by lostbard (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-01 rik5 Open/ClosedOpen Closed
    2016-01-26 lostbard StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code