bugGNU Octave - Bugs: bug #33776, Bar plot color definition Matlab...

 
 

bug #33776: Bar plot color definition Matlab incompatibility

Submitter:  None
Submitted:  Thu 14 Jul 2011 09:27:31 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Burkart Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Feb 2012 09:18:49 PM UTC, comment #2: 

This bug has been fixed in the latest stable release (3.6.0).  Closing report.

Rik <rik5>
Group administrator
Sun 17 Jul 2011 04:10:33 AM UTC, comment #1: 

Confirmed.  This affects either plotting toolkit as well.

Rik <rik5>
Group administrator
Thu 14 Jul 2011 09:27:31 PM UTC, original submission:  

On http://www.mathworks.com/help/techdoc/ref/bar.html you can find the following example:


a = -2.9:0.2:2.9;
bar(a,exp(-a.*a),'r')


When running this code in Octave I get the following error:


error: set: invalid number of arguments
error: called from:
error:   /usr/local/share/octave/3.4.2/m/plot/private/__bar__.m at line 273, column 7
error:   /usr/local/share/octave/3.4.2/m/plot/private/__bar__.m at line 159, column 11
error:   /usr/local/share/octave/3.4.2/m/plot/bar.m at line 94, column 19


It works if you either omit the 'r' altogether


a = -2.9:0.2:2.9;
bar(a,exp(-a.*a))


or if you explicitly define the color as 'FaceColor':


a = -2.9:0.2:2.9;
bar(a,exp(-a.*a),'FaceColor','r')


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 None (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-20 rik5 Open/ClosedOpen Closed
    2011-07-17 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code