problems with +ve & -ve values in bar stacked



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
.



Relevant Pages

  • Re: can i do this type of stacking column chart? (and how?)
    ... money spent by each company, graphed against the value scale of money ... show the bar you want. ... Now create your bar chart, then select one of the bars, Format Selected ... then set the Overlap value to 100%. ...
    (microsoft.public.excel.charting)
  • Re: Access/Microsoft Graph - Possible to control category colors v
    ... bar) via code, ... > be applied with some modification to your Access graph. ... >> I have a table containing error codes. ... >> While I haven't had any problem creating the bar chart, ...
    (microsoft.public.access.reports)
  • Re: Bar chart turns to vertical lines
    ... Thank you Jon. ... Otherwise, each bar is 1/365 of the year wide, ... I have a simple spreadsheet showing my utility bills for each month. ... automatically returns to a bar chart. ...
    (microsoft.public.excel.misc)
  • Re: Bar chart turns to vertical lines
    ... Some folks prefer bottom-posting. ... I have a simple spreadsheet showing my utility bills for each month. ... bars changed to single pixel vertical lines of the same height that the bar ... automatically returns to a bar chart. ...
    (microsoft.public.excel.misc)
  • Re: floating bar chart datasheet manipulation
    ... if you use a stacked bar chart, you'll be able to put in the data you need. ... but rather where I specify along the x-axis. ... > floating bar chart allows this, but I want to continue to add data to the ...
    (microsoft.public.powerpoint)