[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave
From: |
Ian Flintoft |
Subject: |
[Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1 |
Date: |
Mon, 27 Oct 2014 09:10:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 |
Follow-up Comment #2, bug #43468 (project octave):
In MATLAB R2013b the help says
"For vector inputs, bar(X,Y) or bar(Y) draws LENGTH(Y) bars."
For the previous example (but not using random data so I can be sure it's
working) in MATLAB R2013b:
>> genotype=ones(4,1)
genotype =
1
1
1
1
>> hl = bar(genotype)
hl =
174.0016
>> genotype=2.*ones(4,1)
genotype =
2
2
2
2
>> set (hl, 'YData', genotype);
Updates as expected.
>> genotype=ones(1,4)
genotype =
1 1 1 1
>> hl = bar(genotype)
hl =
174.0022
>> genotype=2.*ones(1,4)
genotype =
2 2 2 2
>> set (hl, 'YData', genotype);
Also updates as expected.
Looks like vectors are special-cased to work the same reqardless
of whether they are row or column vvectors.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43468>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, anonymous, 2014/10/24
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Rik, 2014/10/25
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1,
Ian Flintoft <=
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Rik, 2014/10/27
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Ian Flintoft, 2014/10/27
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Rik, 2014/10/27
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Rik, 2014/10/27
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Ian Flintoft, 2014/10/28
- [Octave-bug-tracker] [bug #43468] Bug in bar plot data update in Octave 3.8.1, Rik, 2014/10/28