help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stacked bar plot with positive and negative values


From: Olive
Subject: Stacked bar plot with positive and negative values
Date: Sun, 19 Apr 2020 07:00:08 -0500 (CDT)

Hello,

I am trying to plot a bar plot, stacked, containing positive and negative
value. Unfortunately, I don't manage to get a good result with the bar
function.

The stacked bar plot works well with positive values.

 z=[1 2 3
 4 3 1]
 h = bar (z, 'stacked');

<https://octave.1599824.n4.nabble.com/file/t373739/bar_positive.gif> 
 
And does not wok well with negative value. It seems the values are printed
on top of each other.

 figure
 z=[1 -2 3
 4 3 1]
 h = bar (z, 'stacked');

<https://octave.1599824.n4.nabble.com/file/t373739/bar_negative.gif> 

Do you know a way to work around this?

Kind regards,
Olivier



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]