[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33776] Bar plot color definition Matlab incom
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #33776] Bar plot color definition Matlab incompatibility |
Date: |
Thu, 14 Jul 2011 21:27:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.10 (maverick) Firefox/3.6.18 |
URL:
<http://savannah.gnu.org/bugs/?33776>
Summary: Bar plot color definition Matlab incompatibility
Project: GNU Octave
Submitted by: None
Submitted on: Do 14 Jul 2011 21:27:31 UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Burkart
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.2
Operating System: GNU/Linux
_______________________________________________________
Details:
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')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33776>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33776] Bar plot color definition Matlab incompatibility,
anonymous <=