[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars |
Date: |
Thu, 28 Sep 2017 15:34:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #5, bug #52135 (project octave):
I don't know. Documentation is quite exactly clear. However, a couple things
come to mind.
* It now seems to me that switching the property between grouped|stacked after
the fact should not be a problem. They share the same underlying data
properties.
* Regardless of how the vertical vector case is treated, it seems to me that
in no scenario should the bar(numeric, numeric, ...) treat this as anything
other than bar(X, Y, ...). That is, in the following
octave:3> bar (1, [3, 4]', 'stacked')
x = 1
y = 1
args =
{
[1,1] =
3
4
[1,2] = stacked
}
X should be 1 and Y should be [3, 4]'; args{0} should not be [3 4]'. Further
processing would conclude whether that is a sane X/Y pair.
The bug-reporter does have a good point though. If the documentation is taken
literally, i.e., "Y being a vector" of no qualification horizontal or
vertical, then there is no way of creating a grouped or stacked bar graph of
just a single group (stack). (The matrix scenario has no ambiguity.) A
single group of course is sort of indistinguishable from a plain bar graph,
but a single stack is (well, I suppose if one includes barh, then it does sort
of look like a barh plot, if one uses the extra Width property to achieve it).
I can see an argument for not doing the y = y(:)'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52135>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Marco Caliari, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Marco Caliari, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars,
Dan Sebald <=
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Rik, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28
- [Octave-bug-tracker] [bug #52135] bar cannot plot two stacked bars, Dan Sebald, 2017/09/28