problems with +ve & -ve values in bar stacked
- From: "Pablo Burriel" <pablo_burriel@xxxxxxxx>
- Date: Tue, 15 Jan 2008 11:53:02 +0000 (UTC)
Hi to all,
I am having a problem with the comand bar stacked.
I am trying to do a bar chart with the stacked option. This
is supposed to accumulate the values in each bar.
The problem is that when one of the values is negative, the
stacking goes crazy. Instead of puting one bar negative and
the others positive, it substracts the negative value from
one of the positive values.
Does anyone know how to solve this?
Find a very simple code highlighting this problem:
Y = [-1 2 3
1 1 2];
bar(Y,'stack')
You will see how the first bar has a value that is half
positive and half negative. That is, the program has
applied some odd operation to the values.
Thanks,
Pablo
.
- Follow-Ups:
- Re: problems with +ve & -ve values in bar stacked
- From: Yumnam Kirani Singh
- Re: problems with +ve & -ve values in bar stacked
- Prev by Date: Re: callbacks / recursion limit
- Next by Date: mesh + contour lines ?
- Previous by thread: Delphi Bangalore Needs Matlab guys
- Next by thread: Re: problems with +ve & -ve values in bar stacked
- Index(es):
Relevant Pages
|