help-octave
[Top][All Lists]
Advanced

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

different color bar graph


From: shivax
Subject: different color bar graph
Date: Tue, 11 Jun 2019 22:40:44 -0500 (CDT)

hi, look this array

T=[4 5 -1 4 -9 -4]

i want to color green the positive number and color green the other

hold on
figure;
pos=find(T>0);
neg=find(T<=0);

h=bar(pos,T(pos),'facecolor','g');
v=bar(neg,T(neg),'facecolor','r');


i see only chart green color :(

https://gyazo.com/2fb338f68c85076765870c8521c84337






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



reply via email to

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